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 copy and paste the following line into the terminal window:
- Press return
You should find you will now be able to see any hidden files or folders. One you are done, perform the steps above however, replace the terminal command in step 4 with:
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
It is also possible to use OS X’s built in ‘Automator’ to adjust this setting. A guest blog post can be found here explaining how to set this up.
If you are experiencing issues using the examples above, please post a comment using the comments system below.