You are on page 1of 1

sysvinit Cheat Sheet

by misterrabinhalder via cheatography.com/35799/cs/19547/

Config​uration Inittab Actions Link Farm

Config​uration File wait Determine when and how The contents of the rc*.d direct​ories are
/etc/i​nittab System V init runs the command actually symbolic links to files in yet another
respawn Run the command that follows directory, init.d. A large number of symbolic
Config​uration Syntax
and, if the command finishes links across several subdir​ect​ories such as
id:2:i​nit​def​ault: this is called a link farm.
executing, to run it again
id - A unique indent​ifier
ctrlaltdel Controls what the system does
2 - The applicable runlevel number Contro​lling System V init
when you press CTRL + ALT +
initde​fault - The action that init should
DEL telinit 3 Switch to runlevel 3
take
(optional) A command to execute sysinit Run this action except when in telinit q Reload inittab file
emergency mode telinit s Switch to single​-user mode
Config​uration Direct​ories
initde​‐ This is the default action
/etc/i​nit.d/
fault
/etc/r​c$.d/

Runlevels
Starting and Stopping Services
0 Halt
To start and stop services by hand, use the
1 Single​-user text mode
script in the /etc/i​nit.d directory. For
example, one way to start the httpd daemon 2 Not used (user-​def​inable)
manually is to run /etc/i​nit.d/​httpd start. 3 Full multi-user text mode
Similarly, to kill a running service, you can
4 Not used (user-​def​inable)
use the stop argument. See, /etc/i​nit.d/​httpd
5 Full multi-user graphical mode (with an
for supported argument.
X-based login screen)
6 Reboot

By misterrabinhalder Published 10th May, 2019. Sponsored by CrosswordCheats.com


Last updated 10th May, 2019. Learn to solve cryptic crosswords!
Page 1 of 1. http://crosswordcheats.com

cheatography.com/misterrabinhalder/

You might also like