8
Dec/08
2

How to hide files and folder in Leopard

In Mac OS X, there’s no easy way to hide something without renaming it. Sure you can put a . in front of the name of the file/folder, but that changes the path. There’s also a way to do it with Developer Tools, but what if you don’t have developer tools?

Finally, I’ve come accross an easy terminal command to change a file or folders visibility! Just type the following into terminal:

sudo chflags hidden /path/to/file

to unhide:

sudo chflags nohidden /path/to/file

Finally! A way to hide those pesky Microsoft User Data and Halo folders that want to live in your Document folder.

If this doesn’t work for you, or if you have any questions, leave a comment and I’ll do my best to get back to you.

Filed under: How To, Tech
Comments (2) Trackbacks (0)
  1. I just tried this, but it does not seem to work for user folders. I don’t know if this does exactly the same thing or not, but creating a text document with the names of files you would like to be hidden called .hidden will hide the relavent files if in the same directory.

  2. Thanks. Works perfectly for hiding the Time Machine backup folder on Snow Leopard. The command I used was “sudo chflags hidden /Volumes/Silver/Backups.backupdb” where Silver is the name of my external drive.

Leave a comment


No trackbacks yet.