Show hidden files and folders in Mac OS X Finder

Like as Windows, OS X also has hidden files and folders.

To see hidden files and folders, use below command.

defaults write com.apple.finder AppleShowAllFiles YES


killall Finder
To disable it, please use below command.
defaults write com.apple.finder AppleShowAllFiles NO 
killall Finder