How to show / view hidden files on Mac OS X 10.9 Mavericks, 10.8 Mountain Lion, 10.7 Lion and 10.6 Snow Leopard using command lines codes in Terminal.

Learning how to show / view hidden files on Mac OS X Mavericks and other OS X operating systems can be helpful in numerous situations such as accessing a .htaccess file when working on your website.

There isn’t a simple on / off switch to enable and disable the hidden files features without installing a third-party application.

Therefore, the easiest method to show hidden files on Mac OS X is to run a couple of command line commands in Terminal.

The command to show hidden files in Mac OS X 10.9 Mavericks is:

defaults write AppleShowAllFiles TRUE

Please not that terminal IS caps sensitive and that entering an incorrect command could really mess things up on your computer. Only use terminal when you know exactly what the commands are doing!

See Also: Mac OS X – Change / Set Default Application for File Type [Video]

The command to show hidden files on Mac OS X 10.6, 10.7 and 10.8 is nearly the same but slightly different:

defaults write AppleShowAllFiles TRUE

Once you’ve run the correct command for your operating system, you need to restart find to actually see the hidden files. You can reinitiate finder using the following command:

killall Finder

If you wish to, at some point in the future, you can do so using the same command above but replacing the word “TRUE” with “FALSE”. For example, on Mac OS X Mavericks you would type:

defaults write AppleShowAllFiles FALSE

As always, if you find this video helpful, I would really appreciate a thumbs up and you may also want to think about subscribing to my YouTube channel.

Anson Alexander

Anson Alexander is a blogger, author, SEO expert, teacher, and tech geek. As the founder of, Anson works full time writing, editing, and producing content for his site and providing technical and business services to clients. He has a BS in international business and information systems from the University of Tampa. In his free time, Anson plays video games, enjoys nature, spends time at the beach, and loves to travel.

View all posts