Skip to Content

Massively has the latest Warhammer Online news, guides and analysis!
AOL Tech

Filed under: Hacks, How-tos

Removing .DS_Store files from archives

The marvelous Shaun T. Erickson tipped me off on a sweet way to remove .DS_Store files from your folders before you archive them. Those are the "invisible" files added by Finder on your Mac. He writes that it doesn't matter whether you zip or tar: if they are in the directory tree, they get picked up by the archive. He suggests running the following command from terminal, substituting the appropriate directory for "your_dir":

find your_dir -type f -name .DS_Store -print0 | xargs -0 rm

After, just tar or zip up your tree.

Recent Posts

Reader Comments (Page 1 of 2)

Tip of the Day

Catch all of TUAW's ongoing Macworld coverage at www.tuaw.com/macworld2009


Follow us on Twitter!

Sponsored Links

Featured Galleries

DNC Macs
Macworld 2008 Keynote
Macworld 2008 Build-up
Google Earth for iPhone
Podcaster
Cucchiaio d'Argento
Scrabble for iPhone
Apple Vanity Plates
Apple booth Macworld 07
DiscPainter
2009CupertinoBus
Crash Bandicoot Nitro Kart 3D
Macworld Expo 2007 show floor
Apple Texas Hold 'Em
The Macworld Faithful in Line
iPhone First Look
Facebook 2 for iPhone
TUAW at Macworld 2009 -- North Hall
2009 Macworld Day One
Beejive 2.0
Aurora Feint

 

More Apple Analysis