Open Terminal found in Finder > Applications > Utilities
SHOW HIDDEN FILES
In Terminal, paste the following:
defaults write com.apple.finder AppleShowAllFiles YES
Press return
Hold ‘alt’ on your keyboard, then right click on the Finder icon in the dock and click Relaunch.
This will show all hidden files.
HIDE HIDDEN FILES
To hide them again, follow the same steps but replace the Terminal command with:
defaults write com.apple.finder AppleShowAllFiles NO