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.

<br />
 SetFile -a V path/to/fileOrFolder<br />

To make it visible again…
<br />
 SetFile -a v path/to/fileOrFolder<br />

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.

Filed under: mac-osxTagged with: ,