Tuesday, September 24, 2024

Avoid unnecessary hidden files like .DS_Store on Mac

Each file occupies 4k, which can become a lot of waste in disk space and speed.

Based on this webpage, use the following command to disable MacOS from creating those hidden files on network and USB drives:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true

Another elegant way is to use TinkerTool or CleanMyMac.

No comments: