October 24, 2007
Showing hidden files in Finder
Finder doesn’t usually show hidden files: click on your hard drive in Finder and you’ll see only normal folders.

But if you open Terminal, run cd / then do a ls -l you’ll see all of the normal *nix folders.

To view one of them in Finder, click “Go to folder…” from the “Go” menu and put in “/private/etc”

Suddenly, some interesting files are viewable! Such as the configuration file for apache in /private/etc/httpd/httpd.conf
I usually use pico (a very simple editor which comes standard in Terminal) to change that file but you can also use a good editor (like TextWrangler) to edit it.
If you always would like to see hidden files in Finder, open Terminal and paste in these lines of code (hat tip: Wired):
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

If you ever want to make the hidden folders disappear again, just run the code again, but change TRUE to FALSE.
Technorati Tags: Finder, hidden files, Terminal
Comments(2)
Roger Saner is a web platform developer (using 

You may notice the icons in your Finder (and Desktop) get a faded colour when showing all hidden files. I’m happy to announce that Leopard only applies the fade on hidden files
Ah, one (small) reason to consider upgrading to Leopard…