So, prior to my upgrade to OS X 10.7 all of my OS related hacks where done using third party tools such as Secrets Prefpane. However, I have decided to try and avoid third party apps as much as possible, and actually try and keep my Lion install as slim as possible. Although this article was originally written for OS X Lion, the command has been tested and proved to work in Mountain Lion and Mavericks as well
So here’s my first of what will soon be many OS X terminal commands to do what the third party apps do, without the bloat/overhead.
To enable hidden files/folders in finder windows:
- Open Finder
- Open the Utilities folder
- 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
If the above is not working for you, you may want to try switching YES/NO to TRUE/FALSE .. Beware that this is case sensitive!
defaults write com.apple.Finder AppleShowAllFiles TRUE