Name
tty
Synopsis
tty [options
]
Print the device name of your terminal. This is useful for shell scripts and often for commands that need device information.
Common Option
-s
,--quiet
,--silent
Return only the codes: 0 (a terminal), 1 (not a terminal), 2 (invalid options used).
Solaris Option
-
-l
Print the synchronous line number, if on an active synchronous line.
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.