January 2003
Intermediate to advanced
832 pages
32h 40m
English
tty
tty [option]
Prints the device name for your terminal. This is useful for shell
scripts and commands that need device information.
tty exits 0 if the standard input is a terminal, 1
if the standard input is not a terminal, and >1 if an error
occurs.
-s
Suppress the terminal name.