Clean up Mac OSX’s litter

Posted by

I like MacOS, really I do. However, I don’t like the .DS_Store files that it leaves everywhere. Here’s how to ditch them:

find . -name ".DS_Store" -print0 | xargs -0 rm -rf
find . -name "._*" -print0 | xargs -0 rm -rf

And in Windows:

del /s /q /f /a:h .DS_STORE
del /s /q /f /a:h ._.*
del /s /q /f .DS_STORE
del /s /q /f ._.*

Done.

GoSaBe Blog - Nov 2, 2013 | OSX