.TH TTY 1 .SH NAME tty \- get terminal name .SH SYNOPSIS .B tty .SH DESCRIPTION .I tty prints the pathname of the user's terminal. .SH DIAGNOSTICS `not a tty' if the standard input file is not a terminal.