I do: "defaults write com.apple.desktopservices DSDontWriteNetworkStores true", but after removing the .DS_Store files it still comes. I want to get rid of these files because I have a SSD.
Are you worried about shortening the life of the SSD? Normally modern SSDs have a theoretical write/read limit of 10,000 to 100,000 cycles (P/E cycles), meaning if you had a 64 GB SSD and its cycle limit would be 10,000, you would have to write 625 TB to it, which would be 351 GB per day everyday for the next five years. Assuming those numbers vary and it would only be a tenth of that, it would still mean 35 GB per day, which under normal usage no average computer consumer does, not even with temporary files.
Thanks for the explanation. But still very strange to see the files, whether there is any solution? I understand for what they are and they aren't necessary to me.
Those are hidden files, by default, so you shouldn't be seeing them. To show hidden files in Finder, copy and paste the following command into a Terminal window, then press enter: defaults write com.apple.finder AppleShowAllFiles TRUE && killall FinderTo hide hidden files in Finder, copy and paste the following command into a Terminal window, then press enter: defaults write com.apple.finder AppleShowAllFiles FALSE && killall Finder
.DS_Store files are not a problem. You don't need to prevent their creation. Just let your Mac operate normally.