Show/hide hidden files in Mac OS X

This guide shows you how to show/hide hidden files (and folders) in any version of Mac OS X.

Example: You’re looking for a file in Finder, but can’t find it. It’s most likely hidden.

Resolution: Go to Finder > Applications and start Terminal. To show/hide these files, use the following commands:

To Show:
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

To Hide:
defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder

You can also download the following Automator script that does the above for you.

Click Icon to Download:
Automator