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