DS Store File: Explain .DS_Store file And Working?
DS Store File, Most of the users want to know that what is the purpose of. DS_Store files? Also, the Mac users and Windows System Administrator. Those who have a few Macs on their networks were seeing the files turn up when hidden files are made visible.
So, Here is the explanation that what a DS_Store document is in Mac OS X. This also happens if you delete them, and how to disable their creation. In case, if you would rather not have them around any longer on network environments.
What is a DS Store file? What does a DS Store file do?
The DS Store files will use my Mac OS X to store folder specific metadata information. So, they can also create it in every folder that Mac OS X Finder accesses. This is even network volumes and external devices. Now, the folder level customizations will store this in the DS_Store file. These things also like custom icons, icon placement. It also includes icon size, window placement, list views, custom background pictures or colors. Then DS_Store files are meant to an unobtrusive. That is why they have in front of their name, which indicates to UNIX file systems that the file is invisible.
Also, Mac users will likely never see a DS_Store file at all, though if the user has chosen to show hidden files. So, they will become visible in nearly every directory in OS X. This is likewise, they will almost show up with the -a flag attached to the ls command. By which this also indicates to show invisible files that are preceded with a period.
So, Here is what a DS_Store file looks like when files are made visible in OS X.
Whatever happens, if I delete the DS Store files?
In case, if you delete.DS_Store files from the Mac folders. Then you will lose that directories folder specifics things like icons. It also includes window placement, background pictures, etc, which will be lost. So, that there is no significant harm except losing the folder metadata to delete the DS_Store files. This is unless you have a very specific reason to delete them. Now, you should keep them in place since the Mac OS X Finder uses them. You have to Delete the files that are really only necessary in some specific Windows + Mac that can share networking environments. Then they will wind up by regenerating the Mac OS X anyway.
So, Can I Stop the DS_Store File?
The answer is Yes. You can stop it by executing the following command in the Terminal. Now, you can prevent the creation of DS_Store files.
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
This is very easy to stop.DS_Store file creation for network-connected volumes. You can also share, and drives, but it is rarely necessary for most users’ situations.
Now, these DS_Store files exist in all versions of OS X, from the oldest versions. You have to the latest releases of Mac OS X, as they are a critical component of file system metadata storage and info.
How To Delete manually?
In case, if you want to go down the manual route and then delete. The .DS_Store files individually can do this using the Terminal:
1. You have to Go to Applications > Utilities > Terminal.
2. Then Locate the folder or directory that you want to remove.DS_Store file from.
3. Now, Type the “cd” into the Terminal followed by your folder path. This will also look something like this: cd /Users/username/name of the folder
4. Then Hit Enter.
5. After that, Type find . -name ‘.DS_Store’ -type f -delete.
6. You have to Hit the Enter again. Now, The .DS_Store files in the selected folder will now disappear.
This is even network volumes and external devices. Now, the folder level customizations and store in the DS_Store file. These things also like custom icons, icon placement. It also includes icon size, window placement, list views, custom background pictures or colors.
Hope this guide will help you to resolve it! If you have any questions let us know in the comment section.