Two methods for making files invisible

In MacOSX, there are two simple ways to make files invisible from the command line: (both methods do require the installation of Apple’s Developer Tools)

Method 1:

Make invisible:

/Developer/Tools/SetFile -a V ~/Desktop/MyDoc.txt

Make visible:

SetFile -a v ~/Desktop/MyDoc.txt


Method 2:

Make invisible:

chflags hidden ~/Desktop/MyDoc.txt

Make visible:

chflags nohidden ~/Desktop/MyDoc.txt

You must be logged in to comment on this post (damn those spammers)

Already registered?

Username

Password

forgot password?       register