dTechNotes
Saturday, November 23, 2019
Linux: Find and remove file in one command
Navigate to folder, find the file and remove using the following command. It also asks for confirmation before removing:
cd /destination-folder-path && find -type f -name filename -exec rm -i {} \;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment