Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tty(1) — AUX SR8.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

TTY(1)

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, allowing one to test just the exit code. 

EXIT CODES

0       if standard input is a terminal,
1       otherwise.

DIAGNOSTICS

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

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