English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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.
tty [-s]--help]--version]
Parameter Description:
Display Current Terminal
# tty /dev/pts/4