Make a file or folder invisible in Mac OS X Finder
setfile -a V testfile.txt
Poof! Like magic, the file or folder is no longer visible via the Finder GUI, but don’t worry your files are still there and you can find them via the command line and will show with an ls command. If you want to make your files and folders visible again, use this command:
Make a file folder visible again in Mac OS X Finder
setfile -a v testfile.txt
+++++++++++++++++++++++++++++
/Developer/Tools/SetFile is a tool to set the file attributes on files in an HFS+ directory. It attempts to be similar to the setfile command in MPW. It can apply rules to more than one file with the options applying to all files listed.