Jump to content
InsanelyMac Forum
miranda363

Darwin

Recommended Posts

Advertisement
Does anyone know the command to change a files attribute to hidden? please

 

Hidden in what way - from the OS X finder?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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 :(

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.



×