There are 7 terminals that can be used in our system. tty7
is GUI based.
How can I check which tty
I'm currently using?
command linetty
There are 7 terminals that can be used in our system. tty7
is GUI based.
How can I check which tty
I'm currently using?
Best Answer
There are several ways to find this out. I would go with the
who am i
(notwho
) command:When I'm in a graphical terminal, it would return something like:
Under ssh session using a graphical terminal result is the same, but instead of (:0), I will get my machine IP (192.168.x.x). other commands like
w
,who
,pgrep
,ps
, etc are helpful too.For example to find out at which
tty
my graphical interface is running:Which in my case, because I don't use any display manager like gdm or slim it will produce: