101.3 Change runlevels and shutdown or reboot system Flashcards
/etc/inittab
inittab is a configuration file, which describes which processes are started at bootup and during normal operation.
Sets the Default Run Level
Edit the file by using the VI editor
Runlevel 0
Halt
Runlevel 1
Single user mode (Recovery)
Runlevel 2
Debian/Ubuntu Default
Runlevel 3
Redhat Suse - Text mode
Runlevel 4
Wildcard
Runlevel 5
Redhat Suse - GUI mode (X Windows)
Runlevel 6
Reboot
/etc/inittab
“inittab file describes which processes are started at bootup and during normal operation
Sets the Default Run Level
Edit the file by using the VI editor”
dmesg
is a command on most Linux and Unix based operating systems that prints the message buffer of the kernel.
Set the default runlevel.
Edit the inittab (/etc/inittab) and change run level
telinit
“A variant of init is telinit.
This program can take a runlevel number just like init to change to that runlevel, but it can also take the Q or q option to have the tool reread /etc/
inittab and implement any changes it finds there.
Thus, if you’ve made a change to the runlevel in /etc/inittab, you can immediately implement that change by typing telinit q.”
init
init (short for initialization) is a daemon process that is the direct or indirect ancestor of all other processes.
It automatically adopts all orphaned processes.
Init is the first process started during booting, and is typically assigned PID number 1.
It is started by the kernel using a hard-coded filename, and if the kernel is unable to start it, a kernel panic will result.
Init continues running until the system is shut down.
/etc/rcx.d (X is the number of the runlevel
Symbolic link back to the init.d
Change between run levels including single user mode.
“init 1 (The simplest case is to have it change to the runlevel you specify. For instance, to change to runlevel 1)
”