Lesson 3.2: Boot systems into different targets manually
Changing Default Boot Mode
View the default target of system
# If it is currently in graphical mode [root@sanjeeb ~]# systemctl get-default graphical.target # If it is currently in command line mode [root@sanjeeb ~]# systemctl get-default multi-user.target
To change the target of system
# Set to multi-user (CLI) [root@sanjeeb ~]# systemctl set-default multi-user.target Removed "/etc/systemd/system/default.target". Created symlink /etc/systemd/system/default.target → /usr/lib/systemd/system/multi-user.target. [root@sanjeeb ~]# systemctl get-default multi-user.target # Set to graphical (GUI) [root@sanjeeb ~]# systemctl set-default graphical.target Removed "/etc/systemd/system/default.target". Created symlink /etc/systemd/system/default.target → /usr/lib/systemd/system/graphical.target. [root@sanjeeb ~]# systemctl get-default graphical.target
How to change manually into a different runlevel targetisolate
[root@sanjeeb ~]# systemctl isolate multi-user.target [root@sanjeeb ~]# systemctl isolate graphical.target