defaults write com.apple.finder AppleShowAllFiles -boolean true
and to undo...
defaults delete com.apple.finder AppleShowAllFiles
- Open a terminal window and run...
- defaults write com.apple.finder AppleShowAllFiles -boolean true
- Now hold ‘alt’ on the keyboard and right click on the Finder icon and click on Relaunch (or run killall Finder in the terminal)
If that doesn't work try the above with... (undo with NO or FALSE respectively)
defaults write com.apple.Finder AppleShowAllFiles YES
or
defaults write com.apple.Finder AppleShowAllFiles TRUE
Or if you just want to open a file, using the application's 'Open File' function (e.g. Sublime text 2). Press Command – Shift – [full stop] and all hidden files/folders will become visible, only in the Open File window, very handy!