Remove Windows Thumbs.db Files

Lisa Milne lisa at ltmnet.com
Fri Nov 7 11:47:08 GMT 2008


try this:

find /path/to/directory -name "Thumbs.db" -delete

or this:

find /path/to/directory -name "Thumbs.db" -print | xargs rm


Lisa

On Fri, 2008-11-07 at 21:36 +1000, Simon Ives wrote:
> I've just copied a directory from my wife's Windows XP box to my Hardy
> file server in preparation to reformat her PC to run Ubuntu solely.  As
> I copied the entire directory (her Windows XP user directory) along came
> some annoying and unnecessary Windows files, specifically a whole heap
> of files called Thumbs.db.  I'm looking for a way to delete ALL of the
> Thumbs.db files from ALL of the sub-directories in as few commands as
> possible.
> 
> There are about 700 directories in the "My Music" directory alone, most
> containing Thumbs.db files.  I don't really want to have to enter each
> directory and remove them individually.
> 
> Thanks.
> -- 
> 
> Simon Ives
> 
> simon at simonives.info
> www.simonives.info
> 
> Please consider the environment before printing this email or any
> attachments.
> 
> 
> 
-- 
WebLinux - Linux live on the web!
http://weblinux.ltmnet.com




More information about the ubuntu-au mailing list