from Terminal, write
defaults write com.apple.Finder AppleShowAllFiles YES
to view hidden files and
defaults write com.apple.Finder AppleShowAllFiles NO
to let files to be hidden
Beware that viewing hidden files can confuse, as you will see A LOT of files and folders!!