Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tty(1) — GL2 W2.5r1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

TTY(1)  —  Silicon Graphics

NAME

tty − get the terminal’s name

SYNOPSIS

tty [ −s ]

DESCRIPTION

Tty prints the path name of the user’s terminal.  The −s option inhibits printing of the terminal’s path name, allowing one to test just the exit code. 

EXIT CODES

2if invalid options were specified,
0if standard input is a terminal,
1otherwise. 

DIAGNOSTICS

“not a tty” if the standard input is not a terminal and −s is not specified. 

Version 2.5r1  —  October 29, 1986

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026