TTYS(5) COMMAND REFERENCE TTYS(5)
NAME
ttys - terminal initialization data
DESCRIPTION
The ttys file contains information used by various routines
to initialize and control the use of terminal special files.
This information is read with the getttyent(3) library
routines.
There is one line in the ttys file per special file. Fields
are separated by tabs and/or spaces. Some fields can
contain more than one word enclosed in double quotes. Blank
lines and comments can appear anywhere in the file. Comments
are delimited by `#' and a new line. Unspecified fields
default to null.
The first field is the terminal's entry in the device
directory /dev.
The second field is the command to execute for the line.
This is usually getty(8), which performs tasks such as
baud-rate recognition, reading the login name, and calling
login(1). It can also be any desired command, for example
the startup for a window system terminal emulator or some
other daemon process. This field can contain multiple words
if enclosed in double quotes.
The third field is the type of terminal normally connected
to that tty line, found in the termcap(5) data base file.
The remaining fields set flags in the ty_status entry (see
getttyent(3)) or specify a window system process that
init(8) will maintain for the terminal line. As flag
values, the strings `on' and `off' specify whether init
should execute the command given in the second field. This
flag field should not be quoted. The string `window=' is
followed by a quoted command string that init executes
before starting getty. If the line ends in a comment, the
comment is included in the ty_comment field of the ttyent
structure.
EXAMPLES
This example permits login on the console:
console "/etc/xsystem y" 4317 on
This example disables login from the RC-232 port tty00:
tty00 "/etc/getty y" 4317 off # RS-232
This is an example of network pseudo ttys that should not
have getty enabled on them:
Printed 4/7/89 1
TTYS(5) COMMAND REFERENCE TTYS(5)
ttyp0 none network off
FILES
/etc/ttys
CAVEATS
Many programs such as login(1) and tset(1) do not use the
third field to determine the terminal type connected to that
tty line.
SEE ALSO
login(1), getttyent(3), gettytab(5), init(8), getty(8),
ttytype(5)
Printed 4/7/89 2
%%index%%
na:240,87;
de:327,2115;
ex:2442,461;3215,67;
fi:3282,86;
ca:3368,245;
se:3613,283;
%%index%%000000000116