Help - Search - Members - Calendar
Full Version: Darwin
InsanelyMac Forum > Discuss and Learn > *nix > Darwin
miranda363
Does anyone know the command to change a files attribute to hidden? please
39thRonin
QUOTE(miranda363 @ Oct 21 2005, 08:46 PM) *
Does anyone know the command to change a files attribute to hidden? please


Hidden in what way - from the OS X finder?
Technobob
The way I do it in Mac is click to rename the file or folder then place a peroid at the begining of the name. This makes it hidden to Finder
Sample
.folder
.file
macgirl
QUOTE(miranda363 @ Oct 21 2005, 07:46 PM) *
Does anyone know the command to change a files attribute to hidden? please


If you had Xcode Tools installed, in Terminal write this to hide a file/dir:
/Developer/Tools/SetFile -a -V /path-to/file
and write this if you want to show:
/Developer/Tools/SetFile -a -v /path-to/file

-a means attributes
-V (UPPERCASE) means hide
-v (lowercase) means show

The only thing I can not hide are links like /etc -> /private/etc, /tmp -> /private/tmp and /var -> /private/var mad.gif
miranda363
Excellent people thanks for that
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.