LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Search directories recursively and delete a file with a certain name (https://www.linuxquestions.org/questions/linux-newbie-8/search-directories-recursively-and-delete-a-file-with-a-certain-name-4175505802/)

maples 05-22-2014 03:37 PM

Search directories recursively and delete a file with a certain name
 
Hi,
I have a server that I use to backup everything to. I use both Windows and Linux clients. I Windows likes to throw in extra junk files, like "Thumbs.db" and "desktop.ini" and I would like to remove all of them on the server and the Linux clients. Is there a way to do this?

Thanks

descendant_command 05-22-2014 03:42 PM

Code:

find /path -name Thumbs.db -delete
Test it without the '-delete' first.
'man find' for more options.

Habitual 05-22-2014 03:45 PM

too slow. Gotta go.

Bookmark this

maples 05-22-2014 06:03 PM

Thanks! The 'find' command worked perfectly! I need to look into it some more...

Thanks again!


All times are GMT -5. The time now is 04:38 PM.