OS Manuals

/usr/bin/tty

GNU core utilities

From coreutils 9.12-r7 (os), captured 2026-11-05 by running tty --help (exit 0). permalink

Usage: /usr/bin/tty [OPTION]...
Print the file name of the terminal connected to standard input.

  -s, --silent, --quiet
         print nothing, only return an exit status
      --help
         display this help and exit
      --version
         output version information and exit

Report bugs to: <bug-coreutils@gnu.org>.
GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
General help using GNU software: <https://www.gnu.org/gethelp/>
Full documentation <https://www.gnu.org/software/coreutils/tty>
or available locally via: info '(coreutils) tty invocation'
Options (3)
OptionDescriptionSource
-s, --silent, --quietprint nothing, only return an exit statushelp + man
--helpdisplay this help and exithelp + man
--versionoutput version information and exithelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.