Click to See Complete Forum and Search --> : who command


vhg119
09-03-2004, 07:22 PM
the who command always gives me two users even though
i am the only one logged in and i only logged in once.

root on tty1
and
root on pts/0

i know the tty1 is me, but whats the pts/0 one?

vince

serz
09-03-2004, 07:47 PM
pts are pseudo terminals, they're like virtual terminals. That could be a root login in an xterm or a remote connection for example.

ernieg
09-03-2004, 07:53 PM
tty1 would be you probably logged in on the console (no X) so I would say that you probably boot to init 3.

The pts/0 is a pseudo tty connection that could be from an "ssh" session or a "telnet" session, or even from an "xterm" that uses the "-ls" option so the system treats the session as a "login" session.

In any case the who command will display WHERE the conection was made from IF it comes from another server via rlogin, telnet, or ssh. As a matter of fact, if you telnet or ssh to your OWN system, the who command will display your own machine as where the connect came from. (Note the bold where my system "manito" is displayed)

For example:
[ernieg@manito ernieg]$ who
root tty1 Sep 3 19:44
ernieg :0 Sep 3 19:04
ernieg pts/1 Sep 3 19:39 (manito)
ernieg pts/3 Sep 3 19:43
[ernieg@manito ernieg]$

The first session is a root login to the ascii console (No X)
The second login is me on the "X" console
The third is me again running an ssh session.
The last is me again on an xterm spawned with the "-ls" option.

Hope this helps!

vhg119
09-10-2004, 02:49 PM
my who command gives me this along with
the tty1 entry (which is me):

root pts/0 sep 3 14:53 (:0.0)

what's (:0.0)?

ph34r
09-10-2004, 03:13 PM
0:0 is the X server