[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: home directory



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 argosyiayia ~]$ echo ~/$LOGNAME
> /home/geo-sl/geo
> [geo 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]