What .DS_Store document is? How to completely remove the Mac file system?

Used Mac OS system will notice a hidden file called .DS_Store, especially in zip format archive decompression of it, will appear in various folders, very annoying!

Especially to share files using the windows to friends, these people do not know the files are doing from repeatedly asking this file, there is no use, here no longer produce the .DS_Store way.

.DS_Store is doing?

.DS_Store is used to store the Finder to display the folder properties: for example, the placement of the file icon. After deleting these side effects is the loss of information. (Of course, this side effect is actually not too much).

 

How do I delete all files .DS_Store?

1, hold the Command + spacebar (⌘ + Space) to open the Spotlight, an input terminal

2, enter the following command, and enter the password, you can delete all .DS_Store native files:

sudo find ./ -name “.DS_Store” -depth -exec rm {} ;

3. Enter the machine password (sudo administrator privileges, generally do not use, improper use will damage computer files)

 

Prohibit generation .DS_Store file

Setting no longer produce options, execute the following command (not recommended execution, DS_store has its effect)

.DS_store is a way of handling Mac files, it is recommended not to set so as not to produce this document, if you really do not want to generate this file, enter the following command in the terminal, you can disable the generation of .DS_Store file:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

The above is how the Mac file system and does not delete .DS_Store regeneration of person to person, look at your needs, and decide whether or not to delete files without .DS_Store regeneration. More Mac Software Tutorials and resources to do the download mac download .


Guess you like

Origin www.cnblogs.com/ln321/p/11897738.html