Tags: mac
The Finder file explorer on Mac OS writes .DSStore file in every directory you open with it. This is quite annoying on network shares.
This behavior can be diabled by executing the following command in the terminal:
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
Obviously, to re-enable use:
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool FALSE
src: https://www.techjunkie.com/stop-ds-store-files-mac-network/