I always forget how to do this because I toggle this rather sporadically so I’m adding it to the public record.
To show hidden files in Finder pop open your terminal and type the text shown in the screen grab below.

To go back to hiding files we obviously just flip the AppleShowAllFiles flag to FALSE.

*Update*
As noted in the comments its nice to have the text available for easy copy and paste into your terminal.
Show:
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
Hide:
defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder
12 Comments
Thanks for publishing this.
Yeah, real user friendly. Thanks again Apple.
Thanks for listing this, it was a huge help.
you save my life man.. tx a lot. cheers
Thank you for sharing this.
I’m new to Macos and you taught me something.
Thank you for this! On my mac I have a small script I use to toggle hidden files… so when it came to a new computer I completely forgot! Thanks!
Just wanted to say thanks also. (Can’t believe I need to show/hide hidden files using the Terminal).
Thanks for the useful tip !! Indeed I was looking how to hide specific files and not all dot files, i.e. I just would like to hide the .DS_Store and localized files and still be able to see my dot files (.zshrc for example). Any idea ?
Thanks for the tip! It would be even more usable if you had the lines we could just copy/paste at the top rather than having to type them out manually from the screen shot.
For those others like me who are lazy, here they are. :)
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
i don’t know why this command does not work for me ……….
the terminal always ask me for the user that i have to apply the command
I have to regularly toggle between showing all files, and hiding them. I always forget what to type too… so I wrote a program to do that with the click of a button:
Show All Files Mac
The program is free, and I hope it helps others out as well. Enjoy!
Oops, I forgot the http part:
Show All Files Mac
4 Trackbacks
[...] linked to this from Brooks Andrus blog so I can store it here for [...]
[...] Brooks Andrus » Blog Archive » Mac OS X - Show / Hide Hidden Files in Finder ? [...]
[...] Mac OS X - Show / Hide Hidden Files in Finder Show hidden files on your mac. (tags: mac) [...]
[...] http://www.brooksandrus.com/blog/2007/03/23/mac-os-x-show-hide-hidden-files-in-finder/ [...]