GNU Info

Info Node: (sh-utils.info)tty invocation

(sh-utils.info)tty invocation


Prev: printenv invocation Up: Working context
Enter node , (file) or (file)node

`tty': Print file name of terminal on standard input
====================================================

   `tty' prints the file name of the terminal connected to its standard
input.  It prints `not a tty' if standard input is not a terminal.
Synopsis:

     tty [OPTION]...

   The program accepts the following option.  Also see Note: Common
options.

`-s'
`--silent'
`--quiet'
     Print nothing; only return an exit status.

   Exit status:

     0 if standard input is a terminal
     1 if standard input is not a terminal
     2 if given incorrect arguments
     3 if a write error occurs


automatically generated by info2www version 1.2.2.9