Show/hide hidden files on mac
$ defaults write com.apple.finder AppleShowAllFiles YES
or
$ defaults write com.apple.finder AppleShowAllFiles NO
Then hold the 'Option/alt' key, then right click on the Finder icon in the dock and click Relaunch.