Skip to content

Stop .DS_Store files on network shares (faster SMB browsing) — via Apple Support

Commandlow riskmacOS 14 Sonoma and later

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

  1. Run the command in Terminal, then log out and back in.

Command

Run in Terminal (Applications › Utilities).

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true

Undo

defaults delete com.apple.desktopservices DSDontWriteNetworkStores
With 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

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.

.DS_Storenetworksmbnasfile sharingslow finder

More in Finder