How to get rid of .Ds_Store file. Please help!
My MacBook Air can't get rid of .Ds_Store file at my desktop screen, although I repeatedly deleted it. I think this is related to virus or malware. Please help me solve the problem.
Thank You.
My MacBook Air can't get rid of .Ds_Store file at my desktop screen, although I repeatedly deleted it. I think this is related to virus or malware. Please help me solve the problem.
Thank You.
There is an invisible ds_store file in every folder on your Mac, Desktop is just a folder like the rest. Sometimes the invisibly can get toggled off. You can fix that by launching Terminal from your Utilities folder and then copy/paste this command at the prompt:
defaults write com.apple.finder AppleShowAllFiles False && killall Finder
Press Return
small, invisible .DS_Store files record the position and presentation of the windows in a folder for viewing in the Finder. They allow you to see the same files in the same places when you open the window again later.
They are a part of Mac OS, and are completely unrelated to any virus or other malware.
Dear macjack
Thanks for your kind suggestion. But, I typed the link at the terminal, and it does not change anything.
Best Wishes
It should, did you copy and paste it? Terminal is very fussy about syntax every space and dot must there.
Dear macjack,
Thank you very much! It worked well after my third effort.
Great job.
You're welcome, glad to hear that 🙂
Sudo find / -name ".DS_Store" -depth -exec rm {} \;
You don't want to do that. (*)
As was said already, these .DS_Store files are usually hidden and used by the Finder to know how to display the contents of each folder. There is nothing wrong with having those files.
(*) (and it would not work as written anyway...)
YashRawat wrote:
Sudo find / -name ".DS_Store" -depth -exec rm {} \;
Way to go there, instruction on how to fail to remove files that should not be removed anyway. A perfect pairing.
The tool I prefer is a free Utility TinkerTool, by Marcel Bresink, which allows access to many options for programs on your Mac, but does not modify the programs, only the settings. There is a pane featuring options for Finder:
https://www.bresink.com/osx/TinkerTool.html
.
How to get rid of .Ds_Store file. Please help!