1 .\" You may copy, distribute and modify under the terms of the LDP General
2 .\" Public License as specified in the LICENSE file that comes with the
3 .\" gnumaniak distribution
5 .\" The author kindly requests that no comments regarding the "better"
6 .\" suitability or up-to-date notices of any info documentation alternative
7 .\" is added without contacting him first.
9 .\" (C) 1999-2002 Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
12 .\" man pages are NOT obsolete!
13 .\" <ragnar@ragnar-hojland.com>
14 .TH tty 1 "18 June 2002" "GNU Shell Utilities 2.1"
16 tty \- print the file name of the terminal connected to standard input
18 .B tty [\-s] [\-\-silent] [\-\-quiet]
20 .B tty [\-\-help] [\-\-version]
23 prints the file name of the terminal connected to its standard input. It
24 prints `not a tty' if the standard input is not a terminal. Its exit
27 0 if the standard input is a terminal
28 1 if the standard input is not a terminal
29 2 if given incorrect arguments
30 3 if a write error occurs
35 Print a usage message on standard output and exit successfully.
37 .B "\-s, \-\-silent, \-\-quiet"
38 Print nothing; only return an exit status.
41 Print version information on standard output then exit successfully.
43 Report bugs to bug-sh-utils@gnu.org.
44 Page updated by Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>