MyFirstBrain/Technik/DontWriteDsStoreFiles.md

26 lines
772 B
Markdown
Raw Normal View History

2024-11-20 10:12:54 +01:00
---
tags:
- mac
---
2024-06-15 16:06:47 +02:00
2024-06-15 16:08:47 +02:00
> DeathToDSStore source code,
Clipped from [macOs - How to stop creating .DS_Store on Mac? - Stack Overflow](https://stackoverflow.com/questions/18015978/how-to-stop-creating-ds-store-on-mac) at 2023-11-13.
2024-06-15 16:06:47 +02:00
2024-06-15 16:08:13 +02:00
### To speed up SMB file browsing,
you can prevent macOS from reading .DS_Store files on SMB shares. This makes the Finder use only basic information to immediately display each folder's contents in alphanumeric order. Use this Terminal command:
2024-06-15 16:06:47 +02:00
```bash
2024-06-15 16:08:13 +02:00
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE```
2024-06-15 16:06:47 +02:00
Then log out of your macOS account and log back in.
To reenable sorting, use this command:
2024-06-15 16:08:13 +02:00
```bash
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool FALSE```
2024-06-15 16:06:47 +02:00
2024-06-15 16:08:13 +02:00
#mac #cmd #smb