sai kiran anagani Tjbk79TARiE unsplash scaled
sai kiran anagani Tjbk79TARiE unsplash scaled

What is runlevels in linux

Posted on

If you’re ever in a situation where you need to manually start or stop a service on your Linux server, you’ll probably be using the runlevel command. This handy tool lets you set up different levels of operation for your server, so that, for example, certain services are only started during certain times of the day. In this article, we’ll cover what runlevels are and how to use them on a Linux system.

What is a runlevel?

Runlevels are a way to control the startup sequence of an operating system or computer. They are numbered, with each number representing a different mode of operation. In most cases, when you boot your computer, it will start up in runlevel 1, which is the default. You can change this by issuing the command “runlevel” at the command line. When you do this, Linux will start up in one of the other runlevels that you have defined.

Photo by Sai Kiran Anagani on Unsplash

How to change the runlevel in Linux

What is a runlevel?

A runlevel is a Linux configuration parameter that determines how the system runs. Each time you reboot your computer, Linux automatically changes the runlevel to one of the five predefined levels. The five runlevels are:

1 (default) – Single user mode
2 – System services
3 – Production systems
4 – Back-up and storage systems
5 – Multi-user systems

Conclusion

In this article, we will be discussing what runlevels are and how to use them on a Linux system. Runlevels are a way of telling the operating system which services should be running at any given time, and can be used in combination with init scripts to control the startup process of your system. By understanding how runlevels work, you can tailor your Linux installation to suit your needs and preferences more easily.