What are runlevels in linux systems?

What are runlevels in linux systems?
5 (100%) 1 vote

Recently I came to know about the runlevels in linux while going through  initd. So I thought of writing about it and here it is what are runlevels in linux systems?

So there are 7 runlevels defined and these are numbered from 0-6.Following is the list of the runlevels.

What are runlevels in linux systems?

What are runlevels in linux systems?

Here is a list of runlevels in linux:

Run Level Mode What is does
0 Halt System Shutdown
1 Single User No network interfaces, start daemons, or allow non-root logins
2 Multi User No configure network interfaces or start daemons.
3 Multi User with Networking Starts the system normally.Like most of the servers with terminal
4 User defined Not used/User-definable
5 Multi User with display As most of the desktops are launched with display.
6 Reboot Reboots the system

These are standard runlevels and are used while init the system.

To see which runlevel your system is running in. Open terminal and type

runlevel

It will show the runlevel like below

What are runlevels in linux systems?

These are used in initd to write startup init scripts.

Liked the article please share and subscribe.
You can also read more such articles below.

How to get number of threads per process?

 

How to get most frequent ip address in your logs.

 


Gaurav Yadav

Gaurav is a Full Stack Web Developer and Blogger. Sportsperson by heart and loves football. He has experience with various frameworks in php, python and javascript. Loves to explore new frameworks and evolve with the trending technology.

Leave a Reply

Your email address will not be published. Required fields are marked *