| TTYS(5) | File Formats Manual | TTYS(5) |
NAME
ttys — terminal
initialization information
DESCRIPTION
/etc/ttys lists the terminals on which init(8) runs login sessions. Each line describes one terminal with these fields, separated by blanks:
- name
- The terminal's device name, relative to /dev.
- getty
- The command init(8) runs on the
terminal, normally “/usr/libexec/getty
type”; the terminal's name is added as its
last argument. It must be quoted if it contains blanks.
noneruns nothing. - type
- The terminal type, set as
TERMfor the session. - status
onto run the command,offnot to,onifexiststo run it only if the device exists, oronifconsoleonly if the terminal is the system console.
Any further words are flags:
secure- The superuser may log in on this terminal, and single-user mode does not ask for root's password.
insecure- The opposite of
secure, and the default. window=command- A command to run before getty.
group=name- Put the terminal in a group, for use by other programs.
A ‘#’ begins a comment,
which runs to the end of the line.
FILES
- /etc/ttys
EXAMPLES
console none unknown off insecure ttyv0 "/usr/libexec/getty Pc" linux on insecure ttyu1 "/usr/libexec/getty 3wire" vt100 onifexists insecure
SEE ALSO
HISTORY
A ttys file appeared in
Version 6 AT&T UNIX.
| September 25, 2026 | OxideBSD |