0% found this document useful (0 votes)
26 views7 pages

Run Levels in LINUX

A run level in Linux is the operating state that determines which services are active. There are seven run levels (0-6), each serving different purposes, with specific levels reserved for shutdown, single-user mode, and multi-user modes. The /etc/inittab file defines these run levels, and users can display or switch run levels using the runlevel command or the init command.

Uploaded by

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

Run Levels in LINUX

A run level in Linux is the operating state that determines which services are active. There are seven run levels (0-6), each serving different purposes, with specific levels reserved for shutdown, single-user mode, and multi-user modes. The /etc/inittab file defines these run levels, and users can display or switch run levels using the runlevel command or the init command.

Uploaded by

NIKLAUS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

UX

N S
LI V
Y
A

INV I B
.

L S LA
V E AL
P
E Y
LDB
:

U N I L
E

R OMP
C
DEFINITION

A runl evel is the operating state of a Linux


operating system.

Linux relies on run levels to determine which


services are started
and which services are stopped.
MORE……….
Runlevels are numbered from 0 to 6, with each
runlevel offering different services.
Runlevels 0, 1, and 6 are standard runlevels
reserved for special
purposes.
Runlevels 2, 3, and 4 are used for whatever
purpose you or your Linux distribution provider
decide
THE /ETC/INITTAB FILE DEFINES THE RUN LEVELS ON A LINUX SYSTEM.
HERE IS AN EXAMPLE /ETC/INITTAB FILE:
DESCRIPTION:
0 – shuts down the system.
1, s, or S – single-user mode. Limited number of services are
started. Usually used for system maintenance.
2 – text mode with multiple users, but without network
support.
3 – text mode with multiple users and networking
4 – usually not defined
5 – the default runlevel. Multiuser GUI. The most common
runlevel for Linux workstations.
6 – reboots the system. Used to restart a machine in the
default runlevel.
TO DISPLAY YOUR CURRENT RUNLEVEL, USE THE RUNLEVEL COMMAND:
NOTE:
The first character displayed is the system’s previous runlevel
(3). When this character is N, this means the system hasn’t
switched runlevels since booting. The second number is the
current runlevel (5).
You can also call a runlevel directly using the init daemon
itself. For example, if you would like to perform some
maintenance tasks on your Linux installation, you can
switch to runlevel 1 by using the init 1 command.

You might also like