.TH TTY 1 2022-03-06 "OMKOV coreutils" "General Commands Manual" .SH NAME tty \(em return user's terminal name .SH SYNOPSYS \fBtty\fR .SH DESCRIPTION Print the name of the terminal that is connected to standard input, if standard input is not a terminal, "not a tty" will be printed instead. .SH EXIT STATUS The following exit values will be returned: .TP "0" 8 Standard input is a terminal. .TP "1" 8 Standard input is not a terminal. .SH COPYRIGHT .nf Copyright (C) 2020, Jakob Wakeling MIT Licence (https://opensource.org/licenses/MIT) .fi