Show hidden files in Mac OSX

Show hidden files
Start a Terminal windows
Type followinf commands:
defaults write com.apple.Finder AppleShowAllFiles TRUE
killall Finder

Hide hidden files
Start a Terminal windows
Type followinf commands:
defaults write com.apple.Finder AppleShowAllFiles FALSE
killall Finder