home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


tty

tty [options ]

Print the device name of your terminal. This is useful for shell scripts and often for commands that need device information.

Options

-l

Print the synchronous line number, if on an active synchronous line.

-s

Return only the codes: 0 (a terminal), 1 (not a terminal), 2 (invalid options used).


Previous: Reference: tset UNIX in a Nutshell: System V Edition Next: Reference: type
Reference: tset Book Index Reference: type

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System