Show Hidden Files in Mac OS X Finder
For any of you power-users moving from Windows to MacOS X behind me, another thing you’ll want to know is how to get the Finder to show hidden files (those that begin with a period).
Open a Terminal windows and type:
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
The first line changes the setting in Finder. The second line closes all open Finder windows, so that Finder will restart with the new configuration the next time you open a new window.
Related articles:
- From Windows to Mac: A Home Run
- Printing From Mac via Windows
- Beefier MacBook Pro Models Now Available
Read more: Mac

Mike R wrote:
Thanks for the tip. Very useful to know. I am also a recent Windows convert…. Glad I made the ‘upgrade’
A point to raise is there will be loads of .DS_Store files displayed when you make this change. I doubt accidentally deleting .DS_Store files would cause an issue, however OSX would likely lose the relevant folder settings/ preferences. Not a big deal though I don’t suspect.
Is there a way to script this, such as creating a .sh file for instance, thus doing the equivallent of a Windows .bat file to automate things? I want to switch this feature on and off since I share my computer with another user.
For now I just copy and paste in this command to revert the change:
defaults write com.apple.finder AppleShowAllFiles FALSE
Cheers,
Mike
Posted 13 Dec 2008 at 9:19 am ¶
Lee wrote:
Craig,
thanks for the info.
Mike,
Thanks for providing the information on how to put it back to normal after I changed settings without reading to see if there was a way back!
Posted 23 Jan 2009 at 7:04 pm ¶
Oris wrote:
Good freeware application for http://code.google.com/p/hide-unhide
Posted 24 Nov 2009 at 3:22 pm ¶
Garrett V wrote:
Sheesh, these two lines were what I needed but all these other sites out there had essays on garbage topics with no real help. Perfect example of KISS - keep it simple, stupid.
Thanks for your help!
Posted 07 Dec 2009 at 11:40 am ¶
Jim wrote:
Yes, but how do i make it show FOLDERS, not files?
Posted 21 Apr 2010 at 5:39 pm ¶
Marci wrote:
I have a this issue happening backwards from above. On my Windows server, the Macs are making the file hidden. So a user opens a file on a Mac or create it there, then they save to the Windows server. Then when they want to use that file or folder on the Windows side, it doesn’t show up, I look on the server and it is hidden in the Attributes, I uncheck that and they see it. Why does it do that and does anyone know how to make it stop?
They always see it on the Mac side, doesn’t hide it there.
Any help would be appreciated! THANKS!!
Posted 29 Nov 2010 at 10:13 am ¶
name here wrote:
Thanks much for this, something simple for a medium user, that knows the terminal.
Posted 04 Jan 2011 at 3:55 am ¶
Mr. Geek wrote:
@Mr. R.
The best way, and you might have already attempted this, but use the Automator that is built into OS X. Plugin the terminal commands and let it go. It will create an Icon to execute the file from when done.
Posted 14 Jan 2011 at 12:09 pm ¶
fil wrote:
this is some SOLID wisdom. I used automator, made to apps, on the desktop, and now i am set.
Thanks, ladies & gentlemen.
Posted 01 Jul 2011 at 11:42 am ¶
Joseph Brick wrote:
Thank you. I was trying to save some OmniGraffle stencils and I couldn’t find my Library folder. Why OmniGraffle would use a hidden folder as the default place to store templates is beyond me. Nice tip.
Posted 21 Sep 2011 at 10:57 am ¶
Carla wrote:
This worked great, I found the files I needed to delete, thanks!
How do i reverse it?
Posted 28 May 2012 at 7:43 pm ¶