How To Show Hidden Files in Finder OS X Lion, Snow Leopard

Recently we got problem on my colleague USB Disk, because some viruses on their Windows Operating System made all data on the USB become invisibles, so I try to solve the problem. Now we will share it how to show hidden files in Finder OSX Lion and Snow Leopard easily.

Max OS X Lion
Max OS X Lion
Finder default configuration is Hidden all Invisibles files in Finder, we need to tweak it to enable to show all invisibles files on it. So, let’s move on. To do this step we need little bit to know using Terminal. Let’s move on, open Terminal App on your OS X Lion or Snow Leopard and write down this code
[sourcecode language=”html”]defaults write AppleShowAllFiles TRUE[/sourcecode]

After you did this step, you need to relaunch the Finder by killing the app using this command
[sourcecode language=”html”]killall Finder[/sourcecode]

To hidden invisibles files again on your Finder you need to write this code
[sourcecode language=”html”]defaults write AppleShowAllFiles FALSE[/sourcecode]

And dont’ forget to relaunch the Finder again using command
[sourcecode language=”html”]killall Finder[/sourcecode]

Now, to fix my friends problem by visible all invisibles files on the USB Disk we need to another command to handle it. First you need to go USB Disk Volumes using this command. Example the USB Disk Name is Ganteng

[sourcecode language=”html”]cd /Volumes/Ganteng[/sourcecode]

Then to visibles all invicibles files and folder on Mac OS X Lion or Snow Leopard use this command.
[sourcecode language=”html”]chflags nohidden *[/sourcecode]

On the example above we will disables invisibles files and folder on USB Disk Ganteng. To spesifik File or Folder you can use this command, example the files name is Anak-Ponjong.jpg
[sourcecode language=”html”]chflags nohidden Anak-Ponjong.jpg[/sourcecode]

To hide again, use this command
[sourcecode language=”html”]chflags hidden Anak-Ponjong.jpg[/sourcecode]

More details about chflags command you can use this man chflags, that’s it, now show hidden files in Finder on OS X Lion or Snow Leopard much easier right? You try using applications such as Secret to do this jobs.


  1. Hmm, shoud I write in Indonesian or English? On second thought, let’s go for English shall we.

    To show invisible files in Mac, you can also use FTP apps, for instance CyberDuck or Coda (not exactly an FTP app, but it works). In those apps menu bar, there’s an option to show (and hide) invisible files. It’s a lot more easier to use than typing all those codes in Terminal.

Leave a Reply

Your email address will not be published. Required fields are marked *