1 | .TH TTYTAB
|
---|
2 | .SH NAME
|
---|
3 | ttytab \- table of login terminals
|
---|
4 | .SH SYNOPSIS
|
---|
5 | .B /etc/ttytab
|
---|
6 | .SH DESCRIPTION
|
---|
7 | .de SP
|
---|
8 | .if t .sp 0.4
|
---|
9 | .if n .sp
|
---|
10 | ..
|
---|
11 | The
|
---|
12 | .B ttytab
|
---|
13 | file lists all the terminal devices that one can login on. It is a simple
|
---|
14 | text file that contains lines of the form:
|
---|
15 | .PP
|
---|
16 | .RS
|
---|
17 | .ft I
|
---|
18 | .ta +\w'namennn'u +\w'typennn'u +\w'"getty"nnn'u
|
---|
19 | name type "getty" "init"
|
---|
20 | .DT
|
---|
21 | .ft R
|
---|
22 | .RE
|
---|
23 | .PP
|
---|
24 | The
|
---|
25 | .I name
|
---|
26 | and
|
---|
27 | .I type
|
---|
28 | fields are simple words,
|
---|
29 | .I name
|
---|
30 | is the name of the terminal device with
|
---|
31 | .B /dev
|
---|
32 | stripped off, and
|
---|
33 | .I type
|
---|
34 | tells the type of terminal to initialize the
|
---|
35 | .B TERM
|
---|
36 | environment variable.
|
---|
37 | .PP
|
---|
38 | The
|
---|
39 | .I getty
|
---|
40 | and
|
---|
41 | .I init
|
---|
42 | fields may name commands that are run to allow one to login on the line, or
|
---|
43 | to initialize the line. Both these fields may be more than one word if
|
---|
44 | the whole field is enclosed in double quotes.
|
---|
45 | .I Getty
|
---|
46 | is usually simply the word
|
---|
47 | .BR getty ,
|
---|
48 | the command that prints a system identification banner and allows on to type
|
---|
49 | a name to log in.
|
---|
50 | .I Init
|
---|
51 | is usually an
|
---|
52 | .B stty
|
---|
53 | command to set the baud rate and parity of a serial line.
|
---|
54 | .PP
|
---|
55 | The
|
---|
56 | .I init
|
---|
57 | field may be omitted to indicate that no initialization is necessary, and the
|
---|
58 | .I getty
|
---|
59 | field may be left out to not start a login process. Terminals should not be
|
---|
60 | left out, because their place in the
|
---|
61 | .B ttytab
|
---|
62 | file determines their slot number as returned by
|
---|
63 | .BR ttyslot (3).
|
---|
64 | .PP
|
---|
65 | Comments (introduced by #) and empty lines are ignored.
|
---|
66 | .SH EXAMPLE
|
---|
67 | A
|
---|
68 | .B ttytab
|
---|
69 | for the console, two serial lines, and a pseudo tty entry:
|
---|
70 | .PP
|
---|
71 | .RS
|
---|
72 | .nf
|
---|
73 | .ta +\w'consolennn'u +\w'networknnn'u +\w'gettynnnn'u
|
---|
74 | console minix getty
|
---|
75 | tty00 vt100 getty "stty 9600"
|
---|
76 | tty01 dialup getty "stty 38400"
|
---|
77 | ttyp0 network
|
---|
78 | .DT
|
---|
79 | .fi
|
---|
80 | .RE
|
---|
81 | .SH ENVIRONMENT
|
---|
82 | .TP 15n
|
---|
83 | .B TERM
|
---|
84 | Terminal type
|
---|
85 | .SH NOTES
|
---|
86 | It is customary to set the type to
|
---|
87 | .B dialup
|
---|
88 | for a dialin line. One can check for that name in one's
|
---|
89 | .BR .profile .
|
---|
90 | .SH "SEE ALSO"
|
---|
91 | .BR getttyent (3),
|
---|
92 | .BR ttyslot (3),
|
---|
93 | .BR init (8).
|
---|
94 | .SH AUTHOR
|
---|
95 | Kees J. Bot (kjb@cs.vu.nl)
|
---|