Find and remove Thumbs.db

Status
Not open for further replies.

dgs2001

Dabbler
Joined
Oct 28, 2012
Messages
26
Good Morning.

Could a kind soul please confirm the meaning of "find / -name "Thumbs.db" -exec rm '{}' \;"

I am trying to delete all instances of Thumbs.db on my freenas box

I understand the basics of the command but am unsure what the '{}' after the rm command is?


Many Thanks
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
I find the following to be a bit clearer:
Code:
find / -name "Thumbs.db" -delete


You can add '-print' to see each file that is deleted.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Thumbs.db is typically produced by windows systems on CIFS shares. Alternatives to using "find" are:
1) use group policy to disable thumbnail generation
2) use veto files and delete veto files parameters in your CIFS config to prevent generation of thumbnails in your samba shares.
 
Status
Not open for further replies.
Top