Remove Windows Thumbs.db Files

Dave Hall dave.hall at skwashd.com
Fri Nov 7 11:48:46 GMT 2008


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.

First bit of advice - never trust anyone telling you to run "rm -rf"

Second bit of advice - trust me

3rd bit run this

find /path/to/windows-files -iname thumbs.db -exec rm -rf {} \;

Just change the /path/to/windows-files to the directory where all the
files are.

If something goes wrong, reread my first bit of advice :)

Cheers

Dave




More information about the ubuntu-au mailing list