Prevent .DS_Store Creation in OS X

Dave from Jungle Disk pointed me to an Apple article for preventing .DS_Store file creation. These .DS_Store files are created multiple times when connecting to a remote file server, such as a SMB/CIFS, AFP, NFS or WebDAV server. Although they are small and hidden, they can quickly get annoying when transferring files. For example, when sending things to my Amazon S3 account via Jungle Disk, transaction times are slowed down because there are so many extra .DS_Store files.

As the Apple doc states, simply execute the following line in your terminal and reboot.

defaults write com.apple.desktopservices DSDontWriteNetworkStores true