Type the following command into Terminal on your Mac to show/hide hidden files.
defaults write com.apple.Finder AppleShowAllFiles YES defaults write com.apple.Finder AppleShowAllFiles NO