Show/Hide hidden files in Unix

To show hidden files, use command (caps sensitive):

defaults write com.apple.finder AppleShowAllFiles -bool true

Then restart finder using:

killall Finder

To hide files again, use same command but replace ‘true’ with ‘false’