How to Recursively Remove .DS_Store Files on Mac OS X
The following command will remove all .DS_Store files in a directory where it is executed as well as that particular directory's subdirectories:
find . -name '*.DS_Store' -type f -delete
Why would you want to remove .DS_Store files? The .DS_Store files store Finder-specific preferences concerning the display of each of your folders. Removing these files is an easy way to reset your display preferences. Also, if you're moving files between your Mac and another operating system such as Windows or Linux these files can cause unexpected problems and should be removed prior to transfer.
This command works on Mac OS X and Unix-type operating systems such as Linux. What follows is a step-by-step guide on how to properly use this command on Mac OS X.
Read full article from How to Recursively Remove .DS_Store Files on Mac OS X
No comments:
Post a Comment