Showing hidden files in Mac OS X 10.7 and above
Using my Mac laptop as a dev machine is great but sometimes I need to have access to all my files, including those which begin with a "." such as .git or .ssh.
Here's a quick terminal command which will show these by default.
To enable hidden files/folders in finder windows:
- Open a terminal window
Copy and paste the following line in:
defaults write com.apple.Finder AppleShowAllFiles YES
- Press return
- Now hold ‘alt’ on the keyboard and right click on the Finder icon
- Click on Relaunch
defaults write com.apple.Finder AppleShowAllFiles NO
When Finder relaunches you will notice that all the hidden files and folders have now disappeared again.