OS X: Show hidden files and folders in Mac OS X Finder

I received a request to show how to show hidden files and folders in the Mac OS X finder. Using this terminal command, any OS X user can unhide all hidden files and folders. This will make them visible when browsing through Finder.


First, open Terminal.

Type this command, then press enter:

defaults write com.apple.finder AppleShowAllFiles TRUE
To allow the files to be shown, you must restart Finder. You can do this by holding the Option key, click and hold the Finder icon. When the context menu shows, select Relaunch.

Finder will now restart.

Now all hidden files are showing!

To hide files again, type:

defaults write com.apple.finder AppleShowAllFiles FALSE
In the terminal instead, and restart Finder.

You can also restart finder by using the following command from the terminal:

killall Finder

The Conversation

Follow the reactions below and share your own thoughts.

8 Responses to “OS X: Show hidden files and folders in Mac OS X Finder”

  1. October 03, 2008 at 10:13 pm, brian said:

    Here is a program that will do these steps for you (I always forget what to type, and I have to toggle nearly every day):

    http://gotoes.org/sales/ShowHiddenFilesMacOSX/

    Program is free; tested on OSX 10.4.11

    Reply

  2. November 19, 2008 at 6:48 pm, lilly said:

    Thanks ! Been Needing to know how to do this for ages !

    Reply

  3. February 20, 2009 at 5:26 am, enrique said:

    :) thanks

    Reply

  4. April 18, 2009 at 5:19 am, Watson said:

    I did this but then when I put them back by putting the command in with False at the end ALL of the folders are still visible in my user folder. Just my User folder, everywhere eles went back to hidden. Any Suggestions?

    Reply

  5. June 15, 2009 at 6:32 pm, anon. said:

    I don’t have terminal for some reason. How do I do it then?

    Reply

  6. May 30, 2011 at 3:41 pm, akash singh said:

    seriously you don’t have a terminal…..?? XD

    thats not possible actually. press Command+Space then type terminal and press enter.

    Reply

  7. November 27, 2012 at 2:17 pm, Ryan said:

    New to mac, and I can’t believe stuff like this has to be done with a terminal command. I understand this is a “power user” setting and therefore commands shouldn’t be a problem… but burying this deep inside an advanced section of the system preferences would keep the general mac user from accidentally turning it on.

    Reply

  8. December 29, 2012 at 4:26 pm, david B. said:

    Thanx :)

    Reply

Leave a Reply