- Open up the Terminal
- Run the following comman
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
defaults write com.apple.desktopservices DSDontWriteUSBStores true
- Restart your Mac or log out and back in.
日期: 2019 年 5 月 6 日
Delete .DS_STORE files in current folder and all subfolders from command line on Mac
find . -name ".DS_Store" -print -delete