tty

display terminal name

Command


SYNOPSIS

tty [-s]


DESCRIPTION

tty displays the file name of the terminal device associated with the standard input.

Options

-s

does not display the name; the exit status of tty indicates whether or not the standard input is a terminal.


DIAGNOSTICS

Possible exit status values are:
0

Standard input is a terminal.

1

Standard input is not a terminal.

2

Failure because of unknown command line option, or too many arguments.


PORTABILITY

POSIX.2. x/OPEN Portability Guide 4.0.

The POSIX standard considers the -s option to be obsolete.


SEE ALSO

Commands:


Updated MKS Toolkit [3khat16.ico]HP3000 [3khat16.ico]3kMail [archive16.gif]