O'Reilly logo

Practical Linux by Bill Ball, John Ray, Michael Turner, M. Drew Streib

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Editing inittab

Adding a process to the inittab file is pretty easy. Like many of the system files in Linux, this file is delimited by the colon (:) character.

Remember the 3 Bs of system administration: back up, back up, and back up again

Make sure you have a backup copy of the inittab file before you start editing it.

Each line has the following format:

[ID]:[Runlevels to be running at]:[Action]:[program name and arguments]

Table 27.2 describes each field in the preceding code.

Table 27.2. Inittab File Layout
Field NameDescription
IDThis is a short description of the line or event. For example, pressing Ctrl+Alt+Delete causes init to look for the ctrl-alt-del event in the inittab file. There are events for power failure as well, and along ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required