15 C
Texas
Melhttp://www.osradar.com
Guru Unix /Linux and GNU supporter

Change default runlevel in CentOS 8 / RHEL 8

Centos 8 is just released days, the world is full busy to download create his own test lab based on Redhat System, Let me remember you again that Centos is not really a desktop Linux version that you can enjoy the latest graphic drivers and games. otherwise is taking the leadership o OS servers.

Let me explain in this tutorials how to switch between run levels in Centos 8/ Redhat 8. i try to do that in 2 Ways.

WAY 1:

First List all run levels called also targets

# systemctl list-units --type=target
- Advertisement -

Display my running runlevel

systemctl get-default

as you can see I’m now in Graphical mode

Change default to multi-user.target old name called runlevel 3 (TEXT MODE!)

# systemctl set-default multi-user.target

Check again the default Run level to boot with in the next reboot

# systemctl get-default

Now you can reboot

#reboot

WAY 2:

How to set Multiusertarget in Centos 8 /Redhat 8 ?

What we did above we can do it with the following easy commands.

#rm '/etc/systemd/system/default.target'
#ln -s '/usr/lib/systemd/system/multi-user.target' '/etc/systemd/system/default.target'

Check the running target

#systemctl get-default

To back to Graphical mode ( Graphical target)

#rm '/etc/systemd/system/default.target'
#ln -s '/usr/lib/systemd/system/graphical.target' '/etc/systemd/system/default.target'

Or

#systemctl set-default graphical.target

Reboot to back to Graphical mode

Thank you .Please share ..

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article