Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop ".DS_store" file creation why its create [duplicate]

Tags:

macos

In my computer each folder has .DS_store file. If I delete it after several days its automatically creates .DS_store file. How do I stop it.

like image 898
user3187811 Avatar asked Jul 17 '14 16:07

user3187811


2 Answers

Open Terminal. Execute this command:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

Either restart the computer or log out and back in to the user account.

for more informations:

https://support.apple.com/en-us/HT208209

like image 53
Shanaka Avatar answered Sep 29 '22 20:09

Shanaka


I don't believe you can- DS_Store is generated every time a folder is accessed in the Finder. So, if you really don't want it (or need to get rid of it for an archive or something similar), delete it using the command prompt and don't access the folder again with the Finder.

like image 32
Raligan Avatar answered Sep 29 '22 22:09

Raligan