Make a file or folder invisible in Mac OS X Finder
setfile -a V test.txt

Make a file or folder visible in Mac OS X Finder
setfile -a v test.txt