ttydisplay terminal name |
Command |
tty
[-s
]
tty
displays the file name of the terminal device associated
with the standard input.
-s
does not display the name; the exit status of tty
indicates whether or not the standard input is a terminal.
0
Standard input is a terminal.
1
Standard input is not a terminal.
2
Failure because of unknown command line option, or too many arguments.
-s
option to be obsolete.