Clean Mac OSX '.DS_Store' and '._*' files

21-Feb-2011 | other

$ find . -name .DS_Store -exec rm -v {} \;
$ find . -name ._* -exec rm -v {} \;

To prevent Mac OSX from creating these files on network storage, execute the following command in Mac OSX terminal:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

http://hints.macworld.com/article.php?story=2005070300463515