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