English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux tty command

Linux Command大全

The Linux tty command is used to display the filename of the terminal connected to the standard input device.

In the Linux operating system, all peripheral devices have their names and codes, which are stored in special file types./You can execute the tty (teletypewriter) command under the dev directory to query the filename of the currently used terminal.

Syntax

tty [-s]--help]--version]

Parameter Description:

  • -s or--silent or--quiet Do not display any information, only return status codes.
  • --help Online help.
  • --version Display version information.

Online Examples

Display Current Terminal

# tty
/dev/pts/4

Linux Command大全