Let's talk about pts/0 first. In man, we say this: ptmx and PTS-pseudo-terminal master and slave. PTs is a so-called pseudo terminal or virtual terminal, the specific manifestation is that you open a terminal, which is called pts/0. If you open another terminal, this new terminal is called pts/1. For example, if you use the who command to query the currently logged-on users, you can see the TTY devices of each user (in simple words, the devices that input commands and display information, such as terminals ), the following shows my machine: calabash tty7 2009-12-09 20:04 (: 0) calabash pts/0 2009-12-09 20:20 (: 0.0) calabash pts/1 2009-12-09 20:27 (: 0.0) there is a tty7 that indicates the graphic interface. I am currently logged on to Gnome, and of course it is the graphic interface. There is a tty1-tty6 that text interface, you can use CTRL + ALT + F1-F6 switch, + F7 is to switch back to the graphical interface. The following two lines show that I have opened two terminal windows, so there are pts/0 and pts/1
You can use the command "who" to view details, and use "W" to view details.