How to Change the run level on RHEL/Centos 7/8
Hi friends, in this article we are going to learn how to change the run level on RHEL/Centos 7/8 system.
A run level is nothing it defines the state of the machine. it defines what system services should run. Run level represented by numbers.
So, here we will see how to change run level.
Check Current Run Level of System
Use below command to check the current run level of the system.
[root@linuxfork ~]# runlevel N 3
[root@linuxfork ~]# who -r run-level 3 2020-11-19 08:53
[root@linuxfork ~]# systemctl get-default multi-user.target
Change the runlevel
Using below command we can change the run level of the linux system.
[root@linuxfork ~]# systemctl set-default multi-user.target
Change the runlevel without reboot of the system
In general, we required to reboot the system for changing the run level of the system but we can set the run level without rebooting using the below command.
[root@linuxfork ~]# systemctl isolate graphical.target [root@linuxfork ~]# who -r run-level 5 2020-11-19 16:55 last=3
I am a professional Cloud Engineer and founder of LinuxFork. I am working on Infrastructure Deployment and focusing on the integration of open source technologies with the Cloud. I am an avid Linux lover and open source enthusiast. mostly, I am working with Redhat and Ubuntu Linux in the production environment. apart from this I always believe in knowledge sharing.