OxideBSD
TTYS(5) File Formats Manual TTYS(5)

ttys — terminal initialization information

/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. none runs nothing.
type
The terminal type, set as TERM for the session.
status
on to run the command, off not to, onifexists to run it only if the device exists, or onifconsole only if the terminal is the system console.

Any further words are flags:

The superuser may log in on this terminal, and single-user mode does not ask for root's password.
The opposite of secure, and the default.
=command
A command to run before getty.
=name
Put the terminal in a group, for use by other programs.

A ‘#’ begins a comment, which runs to the end of the line.

/etc/ttys
 

console	none			unknown	off	insecure
ttyv0	"/usr/libexec/getty Pc"	linux	on	insecure
ttyu1	"/usr/libexec/getty 3wire"	vt100	onifexists	insecure

emergency(8), getty(8), init(8)

A ttys file appeared in Version 6 AT&T UNIX.

September 25, 2026 OxideBSD