home directory

Chris Tyler chris at tylers.info
Fri Dec 19 20:51:58 UTC 2008


On Fri, 2008-12-19 at 20:31 +0000, g wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> 
> Alan Cox wrote:
> >> try 'echo ~/$LOGNAME' to get logged in user and directory
> > 
> > As you'd notice if you tried it before posting this doesn't work and
> > couldn't possibly work.
> 
> i did. it does. and why i sent it.
> 
> +++
> geo at argosyiayia ~]$ echo ~/$LOGNAME
> /home/geo-sl/geo
> [geo at argosyiayia ~]$
> +++

g: Your demo proves you wrong. You have posted the wrong answer three
times in three different messages. Please, take your time before hitting
Send.

The OP wanted the home directory of a given user. Your command produces
the current user's home directory followed by a slash followed by the
current user's name.

-Chris




More information about the fedora-list mailing list