coreutils

General Software Utilities
git clone http://git.omkov.net/coreutils
Log | Tree | Refs | README | LICENCE | Download

coreutils/man/tty.1 (20 lines, 543 B) -rw-r--r-- blame download

012345678910111213141516171819
.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