How to Prevent .DS_Store File Creation
The following article describes how to disable the auto creation of .ds_store files
.DS_Store files store folder level metadata information like icon placement and background pictures for Mac OS X.
To disable the automatic creation of .ds_store files in MacOS
First launch the Terminal application usually located under
Enter the following command string mentioned below:
defaults write com.apple.desktopservices DSDontWriteNetworkStores true