Weblog
Thoughts which doesn't affect the world's peace

Find and remove multiple files

Under *nix operating system, there is a command to find files and folders, called the same way – find.

Are you tired of all the windows users browsing through images and creating “Thumbs.db” files?

Here is how you can remove these files with just one command:

find / -name "Thumbs.db"-exec rm -rf {} \;

Explanation:

with this command, you tell the “find” program to look at the root directory (“/”) for files named “Thumbs.db” and execute on them “rm -rf <found filename with path>;”

Voila! No more windows image thumbnail databases!

Tags: , , , , ,

Comments are closed.