Show hidden files in OS-X

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

To hide hidden files

defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder