How to Remove .Ds_Store Files on Mac OS X

Method 1 of 2:

Navigate to the Folder with the Corrupted .DS_Store File

You must now navigate to the folder with the corrupted .DS_Store file or this procedure won't correct your problem (unless it's the folder where terminal naturally opens, usually your home folder. There are two methods to accomplish this task.

  1. Method 1: Use the 'cd' (Change Directory) command along with the path to the folder in need of repair.
    1. To translate what you do in Finder to a written path, start by clicking 'Macintosh HD' on your desktop. This will become '/'. Click the next folder. The name will follow the '/' so type another '/' before any more folder names. For example, if the folder you are having issues with is 'Macintosh HD' -> 'Applications', the path to this folder is '/Applications'. If the problem folder was the 'Utilities' folder inside 'Applications', the path would be '/Applications/Utilities'.
      How to Remove .Ds_Store Files on Mac OS X Picture 1
    2. Type cd /path (example: cd /Applications) then press Return.
  2. Method 2: We can use the 'cd' command and drag the folder to terminal which automatically completes the path building process for you.
    1. Type cd in terminal followed by a space
      How to Remove .Ds_Store Files on Mac OS X Picture 2
    2. Find the folder with the issue but DON'T OPEN IT, drag its icon into terminal. Watch it complete the path for you. Press Return.
Method 2 of 2:

Delete the .DS_Store File

You can now remove the .DS_Store folder and all its contents with one very powerful command. The 'rm' (Remove) modified by '-f' removes all files and folders contained in the target name. DO NOT MIS-TYPE this command.

  1. How to Remove .Ds_Store Files on Mac OS X Picture 3
    Type rm -f .DS_Store and press Return. Terminal will ask for no confirmation and give no indication that this has been completed - it will only return a message if the command did not work.
  2. You should now be able to navigate to the folder in finder and the issue should be corrected.
4.5 ★ | 2 Vote

May be interested

  • How to Set Up an Arduino UnoPhoto of How to Set Up an Arduino Uno
    so, you've just bought, or are considering buying, an arduino uno kit. your mind is probably full of questions about how you can get started right away maximizing your experience. nothing is stopping you from coding the next big thing on...
  • How to Restart a MacPhoto of How to Restart a Mac
    if your mac computer suddenly becomes frozen, or begins to act slow and sluggish, restarting your mac can help clear its memory and process items at a normal speed upon bootup. there are several methods you can use to restart your mac,...
  • How to Connect a Mac to the InternetPhoto of How to Connect a Mac to the Internet
    10 second version: 1. click the wifi icon in the top right corner of your screen. 2. click on the network to which you want to connect. 3. type in the network password. 4. click . log into your mac. a 'home' network is usually associated...
  • How to Open Task Manager on Mac OS XPhoto of How to Open Task Manager on Mac OS X
    task manager, which goes by the name of activity monitor on mac os x, is an application that allows you to view and monitor all active processes running on your computer. if your computer is running slow or inefficiently, you can open...
  • How to Undo a Mac App Update Without Time MachinePhoto of How to Undo a Mac App Update Without Time Machine
    are you planning on updating a mac app or program but you aren't sure if you're going to like the new version? one method of undoing mac application/program updates is to use time machine, but in order to use this feature, you need an...
  • How to Write to an External Hard Drive on Mac OS XPhoto of How to Write to an External Hard Drive on Mac OS X
    writing to an external hard drive using max os x can sometimes be more complicated than one would assume. depending on how the drive is currently formatted, and whether or not you want to reformat it, you have a few possible options. if...