First step: Open the terminal application.
Step Two: Enter the following command:
Defaults write Com.apple.finder Appleshowallfiles-boolean true; Killall Finder
Step three: Press the "return" key to confirm.
Now you'll see the hidden files and folders in the Finder window.
If you want to hide the original hidden files and folders again, replace the above command with the
Defaults write Com.apple.finder Appleshowallfiles-boolean false; Killall Finder
Can.
Note: This command applies to OS X Mavericks and OS X Yosemite systems. For MAC users who still use OS X mountain Lion or earlier versions of the system, the commands need to be changed a little bit.
How to display hidden files and folders in OS X Mountain Lion and previous versions of the Finder
First step: Open the terminal application.
Step Two: Enter the following command:
Defaults write Com.apple.finder appleshowallfiles TRUE; Killall Finder
Step three: Press the "return" key.
This way you'll see hidden files and folders in the Finder window.
Similarly, if you want to hide the original hidden files and folders again, replace the commands in the previous steps with
Defaults write Com.apple.finder appleshowallfiles FALSE; Killall Finder
Can.