Linux Command
consoletype
Output the connected terminal type
Supplementary instructions
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.
grammar
consoletype
Example
[root@localhost ~]# consoletype
pty


