Why is Linux giving a pts number for real terminal console? (which is not an emulated terminal like ssh or xterm)
-1
votes
1
answer
602
views
I read that pts is a pseudo-terminal (that we get through ssh or xterm) and tty is the native terminal.
I didn't connect to my PC through ssh or xterm, but I am still getting pts/0 and pts/1 when I type
who
command. When I open other terminals, the number of pts's increase.
username@machine$ who
username tty7 2020-12-30 11:39 (:0)
username pts/0 2020-12-30 11:39 (:0)
username pts/1 2020-12-30 11:53 (:0)
I am not getting why this is happening, shouldn't there be more tty's after opening other terminals?
Also, when I do su
I see that other pts session gets opened for root in auth.log file.
Asked by Gaurav Purswani
(1 rep)
Dec 30, 2020, 07:05 AM
Last activity: Dec 31, 2020, 04:27 PM
Last activity: Dec 31, 2020, 04:27 PM