Wednesday 4 March 2009

Hiding a file

Joe always leaves a DEADJOE file around.

on os x hide it with

Launch Terminal.
Open the /Developer/Tools folder in the Finder. Locate SetFile and drag its icon to the terminal window. The Directory path for SetFile (/Developer/Tools/SetFile) should appear in the Unix command line prompt.
Type: -a V . Leave a space after the upper case V.
Locate the file that you want to make invisible. Drag its icon to the Terminal window. Its path should now be added to the same command line prompt.
Thus, for our aforementioned MyDoc file on the Desktop, when you are done doing all of the above, the command line should look like this:

/Developer/Tools/SetFile -a V /Users/homedirectoryname/Desktop/MyDoc

No comments: