Linux and Unix tty command
Quick links
About tty
Syntax
Examples
Related commands
Linux and Unix main page
Print the file name of the terminal connected to standard input.
tty [OPTION]...
| -s, --silent, --quiet | Print nothing, only return an exit status. |
tty
Running tty by itself will display the current tty session as shown below.
/dev/pts/0
