$ defaults write com.apple.finder AppleShowAllFiles TRUE $ killall Finder
Alternatively, edit the Finder's preference file directly. It is in your home folder in Library:Preferences:com.apple.finder.plist
In a Text Edit look for the lines:
AppleShowAllFiles FALSE
and change FALSE to TRUE
In PropertyListEditor look for 'AppleShowAllFiles' and change the value to TRUE
$ defaults write com.apple.finder AppleShowAllFiles FALSE $ killall Finder
sudo /Developer/Tools/GetFileInfo var sudo /Developer/Tools/SetFile -a v var