0% found this document useful (0 votes)
55 views

Sysvinit Cheat Sheet: by Via

This document provides a cheat sheet on configuring and controlling the System V init process on Linux systems. It outlines the inittab configuration file and syntax, inittab actions like wait and respawn, and describes how to control init using commands like telinit. It also explains the role of the /etc/init.d and rc*.d directories in starting and stopping services, and lists the standard Linux runlevels.

Uploaded by

bader haouari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views

Sysvinit Cheat Sheet: by Via

This document provides a cheat sheet on configuring and controlling the System V init process on Linux systems. It outlines the inittab configuration file and syntax, inittab actions like wait and respawn, and describes how to control init using commands like telinit. It also explains the role of the /etc/init.d and rc*.d directories in starting and stopping services, and lists the standard Linux runlevels.

Uploaded by

bader haouari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy