輸出已連接的終端類型
consoletype命令 用于打印已連接的終端類型到標準輸出,并能夠檢查已連接的終端是當前終端還是虛擬終端。
consoletype
[root@localhost ~]# consoletype pty