Quick query on something i dont understand!!! there are many
echo ~
/home/myprod/myprod
echo ~/bin
/home/myprod/myprod/bin
Which I am okay with and totaly understand but why does
echo ~bin
give
/usr/bin
I dont understand how the shell interperets ~bin???
You forgot to say which shell you are using.
Your shell expands ~bin to the home directory of the user 'bin'
(see /etc/passwd).
Laurenz Albe
~ usually means the value of the environment variable $HOME
~xxx requires the shell to read /etc/passwd, find the user "xxx" , and
extract the home directory for that user.
--
Sending unsolicited commercial e-mail to this account incurs a fee of
$500 per message, and acknowledges the legality of this contract.