Stop .DS_Store files on network shares (faster SMB browsing) — via Apple Support
Finder leaves .DS_Store files in every folder it opens to remember view settings, and on network shares reading them slows browsing. Apple documents a setting that stops this on SMB shares, so folders list faster. Windows and Linux users of the share will thank you too.
Sign out and back in
The easy way
- Run the command in Terminal, then log out and back in.
Command
Run in Terminal (Applications › Utilities).
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool trueUndo
defaults delete com.apple.desktopservices DSDontWriteNetworkStoresWith this on, Finder shows network folders in plain alphabetical order and won't remember custom view settings for them. .DS_Store files that already exist on the share stay there until you remove them.
Sources
- Adjust SMB browsing behavior in macOS — by Apple Support
- Source reviewed
- 2026-11-02
- Link checked
- 2026-11-02
- Tested hands-on
- Not by Oddbyte.Me
Oddbyte.Me hasn't tried this on every macOS version, so keep the undo handy.