manual page distributed with 4.2BSD
[unix-history] / usr / src / libexec / getty / ttys.5
CommitLineData
5dc2d425 1.\" @(#)ttys.5 5.1 (Berkeley) %G%
6d85239e 2.\"
5dc2d425 3.TH TTYS 5 "18 July 1983"
6d85239e
KM
4.AT 3
5.SH NAME
6ttys \- terminal initialization data
7.SH DESCRIPTION
8The
9.I ttys
10file is read by the
11.I init
5dc2d425
KM
12program and specifies which terminal special files are to have
13a process created for them so that people can log in.
14There is one line in the
15.I ttys
16file per special file.
6d85239e 17.PP
5dc2d425
KM
18The first character of a line in the
19.I ttys
20file is either `0' or `1'. If the first character on the line is a `0', the
21.I init
22program ignores that line. If the first character on the line is a `1', the
23.I init
24program creates a login process for that line.
25The second character on each line is used as an argument to
6d85239e 26.IR getty (8),
5dc2d425 27which performs such tasks as baud-rate recognition, reading the login name,
6d85239e
KM
28and calling
29.I login.
5dc2d425 30For normal lines, the character is `0';
6d85239e 31other characters can be used, for example, with hard-wired terminals
5dc2d425 32where speed recognition is unnecessary or which have special characteristics.
6d85239e
KM
33.RI ( Getty
34will have to be fixed in such cases.)
5dc2d425 35The remainder of the line is the terminal's entry in the device directory, /dev.
6d85239e
KM
36.SH FILES
37/etc/ttys
38.SH "SEE ALSO"
5dc2d425 39gettytab(5), init(8), getty(8), login(1)