


      TTY(1)                      (UNIX 5.0)                     TTY(1)



      NAME
           tty - get the terminal's name

      SYNTAX
           tty [ -s ]

      DESCRIPTION
           Tty prints the path name of the user's terminal.  The -s
           option inhibits printing of the terminal's path name,
           allowing one to test just the exit code.

      EXIT CODES
           2    if invalid options were specified,
           0    if standard input is a terminal,
           1    otherwise.

      DIAGNOSTICS
           Tty prints ``not a tty'' if the standard input is not a
           terminal and -s is not specified.




































      Page 1                                          (73 A2 02MT REV1)



