Output the connected terminal type
consoletype command is used to print the connected terminal type to standard output and can check whether the connected terminal is the current terminal or a virtual terminal.
consoletype
[root@localhost ~]# consoletype
pty