首页
首页 » 网络通讯 » tty(teletypewriter)

tty(teletypewriter)

tty(teletypewriter)
功能说明:显示终端机连接标准输入设备的文件名称。
语  法:tty [-s][--help][--version]
补充说明:在Linux操作系统中,所有外围设备都有其名称与代号,这些名称代号以特殊文件的类型存放于/dev目录下。你可以执行tty指令查询目前使用的终端机的文件名称。
参  数:
  -s或--silent或--quiet   不显示任何信息,只回传状态代码。
  --help   在线帮助。
  --version   显示版本信息。

tty

tty [options]

Print the filename of the terminal connected to standard input.

Options

--help

Print help message and exit.

-s, --silent, --quiet

Print nothing to standard output, but return an exit status.

--version

Display version information and exit.