Linux command complete, including Linux command manual, detailed explanation, learning, and shell script programming
显示连接到当前标准输入的终端设备文件名。
tty命令 可以显示连接到当前标准输入的终端设备文件名。
tty [选项]
-s 什么也不显示,只返回退出状态值
显示连接到当前标准输入的终端设备文件名。
[root@localhost ~]# tty
/dev/pts/0