Sometimes I need to see hidden files in Finder. Type the text shown in the screen grab below.

Show:

defaults write com.apple.finder AppleShowAllFiles TRUE
 killall Finder

Hide:

defaults write com.apple.finder AppleShowAllFiles FALSE
 killall Finder