Mac OS X: how to get rid of .DS_Store files

I. Can we disable the creation of .DS_Store files?

Answer is NO. But we can disable the creation of .DS_Store files on network volumes using the following command:
defaults write DSDontWriteNetworkStores true

II. How do I clean up the .DS_Store files

Run the following command in,
find /Volumes/USB-DISK -name '.DS_Store' -type f -delete

See also

No comments:

Post a Comment