Poof it’s Gone

OK, I’m only really posting this cause I need it and I just want to put it somewhere to remember it. ;-)

To make a file or folder invisible issue the following from the CLI.

SetFile -a V path/to/fileOrFolder

To make it visible again…

SetFile -a v path/to/fileOrFolder

That’s it. This can be especially useful on shared drives to keep others out of specific folders, etc. BTW, the file or folder still shows up in ls, it’s just not visible in Finder.

Related posts:

  1. VoodooPad Pro Blogging Please note that VoodooPad Pro has been renamed to VoodooPad....

Related posts brought to you by Yet Another Related Posts Plugin.

This entry was posted in mac-osx and tagged , . Bookmark the permalink.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.