1. Open Terminal
Shortcuts to open Terminal:
Command + Space Bar then type "Terminal"
Command + Shift + U and Open "Terminal"
2. To Show the Hidden Files type the following code and Enter:
defaults write com.apple.finder AppleShowAllFiles TRUE && killall Finder
3. To Hide the Hidden Files type the following code and Enter:
defaults write com.apple.finder AppleShowAllFiles FALSE && killall Finder
4. Finish