BSD 4_2 development
[unix-history] / usr / man / man1 / tty.1
CommitLineData
d8649de5
C
1.TH TTY 1 "10 February 1983"
2.SH NAME
3tty \- get terminal name
4.SH SYNOPSIS
5.B tty
6[ -s ]
7.SH DESCRIPTION
8.I Tty
9prints the pathname of the user's terminal unless the \-s
10(silent) is given. In either case, the exit value is zero if the
11standard input is a terminal and one if it is not.
12.SH DIAGNOSTICS
13`not a tty' if the standard input file is not a terminal.