1TTY(1) General Commands Manual TTY(1)
23
4
NAME
6tty - get terminal name
7
SYNOPSIS
9tty [ -s ]
10
DESCRIPTION
12Tty prints the pathname of the user's terminal unless the -s (silent)
13is given. In either case, the exit value is zero if the standard input
14is a terminal and one if it is not.
15
DIAGNOSTICS
17`not a tty' if the standard input file is not a terminal.
1819
20
21
7th Edition April 29, 1985 TTY(1)