[LBo] "Who" command
Geoff Jones
geoffjones99 at ntlworld.com
Thu Nov 23 10:19:03 CET 2006
Stefan wrote:-
> > I get this (on Ubuntu Edgy):
> > stw at laptop:~$ LANG=C who -H
> > NAME LINE TIME COMMENT
> > stw :0 Nov 22 10:28
> > stw pts/0 Nov 22 20:22 (:0.0)
> > stw pts/1 Nov 22 20:24 (:0.0)
> >
> >
> > So, you :0 and :20 are the "lines" through which you are connected to
> > the system. I'd guess root is logged in as root, and geoff is connected
> > via X11 across the net? Maybe?
Not sure that "lines" is the problem - I am just copying the "who - write"
example in Chap 4 and if I log into Ubuntu with 2 shells can do :-
geoff at ubuntu:~$ who
geoff :0 2006-11-22 22:49
geoff pts/1 2006-11-22 22:50 (:0.0)
geoff at ubuntu:~$ write geoff pts/2
Hello world
geoff at ubuntu:~$
geoff at ubuntu:~$ who
geoff :0 2006-11-22 22:49
geoff pts/1 2006-11-22 22:50 (:0.0)
geoff pts/2 2006-11-22 22:51 (:0.0)
geoff at ubuntu:~$
Message from geoff at ubuntu on pts/1 at 22:51 ...
Hello world
geoff at ubuntu:~$ EOF
The same thing in Deb_Etch as single user with 2 shells gives :-
geoff at debian:~$ who
geoff :0 2006-11-22 23:00
geoff at debian:~$ tty
/dev/pts/3
geoff at debian:~$
geoff at debian:~$ who
geoff :0 2006-11-22 23:00
geoff at debian:~$ tty
/dev/pts/4
geoff at debian:~$ write geoff pts/3
write: geoff is not logged in on pts/3
geoff at debian:~$
It's not a problem as such - I would just like to know why I am getting
different behaviour from 2 similar distro's ?
Geoff.
More information about the QnA
mailing list