PDA

View Full Version : [ubuntu] who command - whats the differemce between a tty and a pts



kalimojo
June 14th, 2011, 11:21 PM
sam@HP:~$ who
sam tty7 2011-06-14 23:15 (:0)
guest tty8 2011-06-14 23:15 (:1)
guest pts/0 2011-06-14 23:16 (:1.0)
sam pts/1 2011-06-14 23:17 (:0.0)

el_koraco
June 14th, 2011, 11:28 PM
http://linux.die.net/man/4/pts

sisco311
June 14th, 2011, 11:49 PM
http://en.wikipedia.org/wiki/Tty_(Unix)

pts/[0-9]+ is the filename of a pseudo terminal (xterm, gnome-terminal...)
and
tty[0-9]+ is the filename of a virtual console (http://en.wikipedia.org/wiki/Virtual_console).

kalimojo
June 14th, 2011, 11:51 PM
http://linux.die.net/man/4/pts

Way over my head

kalimojo
June 15th, 2011, 12:21 AM
http://en.wikipedia.org/wiki/Tty_(Unix)

pts/[0-9]+ is the filename of a pseudo terminal (xterm, gnome-terminal...)
and
tty[0-9]+ is the filename of a virtual console (http://en.wikipedia.org/wiki/Virtual_console).

How do I tell if someone is logged in remotely ?

sisco311
June 15th, 2011, 12:46 AM
If the user is logged in from a remote machine, then who displays the host name of the machine as well.



root tty1 Jul 24 10:13
joe pts/0Aug 1 14:17 (somehost.com)