Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Hide an Alias with the Terminal

Hide an Alias with the Terminal
Thread Tools
REVBCO
Forum Regular
Join Date: Apr 2007
Location: Iowa
Status: Offline
Reply With Quote
Jul 30, 2008, 12:46 PM
 
How do I hide an alias in the terminal? I just reinstalled my the OS and there are some unix folders that are showing up under the Macintosh HD. I figured out how to hide the normal folders but the trick wont work with the alias folders.

Thanks for you help
2.33 White iMac | 2GB Ram | 500GB HD
2.2 BlackBook | 2GB Ram | 120GB HD
16GB Touch | 80GB Classic | 10GB Classic | 8GB Pink | 40GB Apple TV
     
REVBCO  (op)
Forum Regular
Join Date: Apr 2007
Location: Iowa
Status: Offline
Reply With Quote
Jul 30, 2008, 01:02 PM
 
Here is a link on what I am trying to do.
2.33 White iMac | 2GB Ram | 500GB HD
2.2 BlackBook | 2GB Ram | 120GB HD
16GB Touch | 80GB Classic | 10GB Classic | 8GB Pink | 40GB Apple TV
     
Atheist
Mac Elite
Join Date: Sep 2006
Location: Back in the Good Ole US of A
Status: Offline
Reply With Quote
Jul 30, 2008, 01:13 PM
 
I found the following here:


Reasons for invisibility

In Mac OS X, there are three different ways a file or directory can be made invisible in the finder: it can have the "invisible" attribute set (as in older Mac OS systems), its name can start with "." (as in other unix systems), or its name can be listed in the /.hidden file. Many of the files and directories listed above are actually invisible for multiple reasons (e.g. /bin is listed in /.hidden, as well as having its invisible attribute set).

Note that OS X only respects the .hidden file on its boot volume, so if you boot from another disk, several normally-hidden files will suddenly be visible. Also, since Mac OS 9 (and older versions) only recognize the invisible flag, even more of these files (mainly /.vol, /mach, /mach.sym, and sometimes .DS_Store) will be visible when you boot into Mac OS 9.
     
Simon
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Jul 30, 2008, 02:50 PM
 
To make something invisible:
setFile -a V ~/foo

To make something visible:
setFile -a v ~/foo
     
REVBCO  (op)
Forum Regular
Join Date: Apr 2007
Location: Iowa
Status: Offline
Reply With Quote
Jul 30, 2008, 04:16 PM
 
what is " ~/foo"?
Is it the path to the file?
2.33 White iMac | 2GB Ram | 500GB HD
2.2 BlackBook | 2GB Ram | 120GB HD
16GB Touch | 80GB Classic | 10GB Classic | 8GB Pink | 40GB Apple TV
     
Big Mac
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status: Offline
Reply With Quote
Jul 30, 2008, 04:29 PM
 
Ya. ~ is a shortcut reference to one's home folder.

"The natural progress of things is for liberty to yield and government to gain ground." TJ
     
Simon
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Jul 31, 2008, 02:37 AM
 
~/foo was just an example. You can use the setFile command on files or folders.
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 03:31 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,