OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / gnumaniak / original / man1 / tty.1
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
4 .\"
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.
8 .\"
9 .\" (C) 1999-2002 Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
10 .\"
11 .\"     GNU tty man page
12 .\"     man pages are NOT obsolete!
13 .\"     <ragnar@ragnar-hojland.com>
14 .TH tty 1 "18 June 2002" "GNU Shell Utilities 2.1"
15 .SH NAME
16 tty \- print the file name of the terminal connected to standard input
17 .SH SYNOPSIS
18 .B tty [\-s] [\-\-silent] [\-\-quiet]
19 .sp
20 .B tty [\-\-help] [\-\-version]
21 .SH DESCRIPTION
22 .B tty
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
25 status is:
26 .nf
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
31 .fi
32 .SH OPTIONS
33 .TP
34 .B "\-\-help"
35 Print a usage message on standard output and exit successfully.
36 .TP
37 .B "\-s, \-\-silent, \-\-quiet"
38 Print nothing; only return an exit status.
39 .TP
40 .B "\-\-version"
41 Print version information on standard output then exit successfully.
42 .SH NOTES
43 Report bugs to bug-sh-utils@gnu.org.
44 Page updated by Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
45