Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Easily hide files or folders from users in the Finder System
I'm surprised I couldn't find this anywhere on the site yet, but it seems to be the easiest way to hide files or folders from the Finder. This is particularly useful, for example, for hiding a user's Library folder from a less computer-savvy user, as you're afraid they might mess something up in there. To hide a user's Library folder, just type the following code into a Terminal window:
chflags hidden ~/Library
Of course, you can replace the path to the Library folder with any other folder or file you would like to hide. This will only make the folder hidden from the Finder under normal browsing; it can still be accessed through the Terminal or by using the Finder's Go » Go to Folder menu option.

If you want to unhide the Library, type the following code into a Terminal:
chflags nohidden ~/Library
[robg adds: chflags hidden was discussed in this hint about hiding Time Capsule. The other way to hide files and folders is to use SetFile, as explained in this hint. Note that SetFile requires the Xcode Developer Tools be installed.]
    •    
  • Currently 2.37 / 5
  You rated: 2 / 5 (35 votes cast)
 
[32,503 views]  

Easily hide files or folders from users in the Finder | 4 comments | Create New Account
Click here to return to the 'Easily hide files or folders from users in the Finder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Easily hide files or folders from users in the Finder
Authored by: orca1 on Jan 06, '10 07:52:34AM
Thanks for posting this hint. I had also researched this topic some time ago, but did not come across the chflags hidden command. Another way of hiding folders from Finder is by starting its name with a period as in ".HiddenFolder", but using chflags is much more flexible.

[ Reply to This | # ]
Easily hide files or folders from users in the Finder
Authored by: jhollinger on Jan 06, '10 10:04:06AM

While this will hide a folder in a finder window the folder you have hidden will still show up if you use stacks from the dock.



[ Reply to This | # ]
Easily hide files or folders from users in the Finder
Authored by: Leandro Lares on Jan 08, '10 04:48:44PM

Removed the stack, put it back, and then the hidden folder will disappear.



[ Reply to This | # ]
Easily hide files or folders from users in the Finder
Authored by: novamedia on Jan 28, '11 07:45:51AM

Hello,

if you do not want to use the terminal, we did release a software for that particular problem, called UberMask. There are more like Know, Espionage and others, which add encryption services as well. Ours ist just to hide files and folders from view with a keystroke. A demo is available at http://www.novamedia.de/en/mac-ubermask.html if you want to give it a try.

Kind regards,

Jan Fuellemann



[ Reply to This | # ]