4

I ran the last command in Linux; I got the output:

pts/0, pts/1, pts/2, pts/3, pts/4 and pts/5

What does pts mean?

  • 2
    Hello Ahmed, and welcome to U&L! Don't be afraid to use the search bar for key words in your question -- for example, http://unix.stackexchange.com/questions/21280/difference-between-pts-and-tty would be a good start. – Jeff Schaller Oct 13 '15 at 18:13

1 Answers1

8

The pts/0 is telling you which "pseudo terminal" the user was logged in on. In this case it's terminal 0,1,2 etc.

A tty is a native terminal device, the backend is either hardware or kernel emulated.

A pts (pseudo terminal device) is a terminal device which is emulated by an other program (example: xterm, screen, or ssh are such programs).

Manuel Jordan
  • 1,728
  • 2
  • 16
  • 40
magor
  • 3,752
  • 2
  • 13
  • 28