Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '~ is not an alias!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
~ is not an alias!
Authored by: owain_vaughan on May 21, '01 04:32:20AM

The reason you are getting permission denied errors is because you are typing '~' as a command, when in fact it is a pseudo path. What you want to type is 'cd ~'. 'cd home' is in fact specific to the C-shell (and tcsh).

So we have:
% cd
% cd ~
% cd ~user
% cd home
% cd $HOME
% cd /Users/$USER

So as you can see just typing 'cd' is by far the easist.



[ Reply to This | # ]
~ is not an alias!
Authored by: babbage on May 21, '01 02:51:58PM

Seems to me that the best habit is "cd ~" though. It's still pretty short (I'm not
gonna complain about going from 2 to 4 characters) and it can be the basis of a lot
of other shortcuts: "cd ~/bin", "(cd ~/Applications/setiathome/ ; ./setiathome) &",
"vi ~/Library/Preferences/com.apple.Terminal.plist", "ls ~/Documents", etc. Having
the tilde in there by habit makes things pretty easy to remember.



[ Reply to This | # ]