Download File - Ram Chavan

Transcript
vt100 ttyp2
vt100 ttyp3
You use the /etc/inittab file to set the behavior of each terminal. The format of the /etc/inittab file
follows this pattern:
ID:runlevel:action:process
The ID is a one or two character string that uniquely identifies the entry. For terminals, this string
corresponds to the device name, such as 1 for tty1. The runlevel decides the capabilities of the terminal
with the various states the Linux operating system can be in. Run levels vary from 0 to 6. If no entry is
provided, the terminal supports all run levels. You can mention multiple run levels in the field.
The action indicates the behavior of the terminal device when the system starts and when a getty process
is terminated on it. Several valid entries for the action field apply to terminals:
●
once starts the process once
●
ondemand always keeps the process running (the same as respawn)
●
respawn always keeps the process running
A simple /etc/inittab file showing terminal startup commands (taken from an earlier version of Linux for
clarity's sake, as the latest version complicates the lines a little) looks like the following: