Runlevels in centos 7

Hi, i have familier with runlevels in centos 6, there we must edit /etc/inittab file to change to any runlevel but how to do the same on centos 7? there i found no entry in /etc/inittab file and it's seems does'nt work.

Tags: CentOS runlevel command Linux
user image Author :   cameron

In Centos 7 there is no use of /etc/inittab file, instead we can use targets, because systemd no more uses the /etc/inittab file. If you want to change your current runlevel you must use systemctl command. So you can use the below command to temporarily change your run level.

systemctl isolate

And use the below command to permanently set your runlevel

systemctl set-default
user image
parthiban June 11, 2018
Add comment