--- Title: "Changing boot targets" Author: "Kristof Vandam" Categories: [ "administration" ] Tags: [ "linux", "security", "boot" ] Date: 2018-11-09T10:08:15+02:00 Truncated: true Draft: false --- Switch between run levels / environments. # Changing boot targets ## On the fly Goto a graphical environment ```.language-command systemctl isolate graphical.target ``` Goto a text based environment ```.language-command systemctl isolate multi-user.target ``` ## Permanently change environments Graphical environment ```.language-command systemctl set-default graphical.target ``` Text based environment ```.language-command systemctl set-default multi-user.target ``` ## Set target on boot 1. Interrupt the bootloader (GRUB) and edit the kernel entry before booting. Press *e* to edit the entry 2. Goto the line that starts with *linux16* suffix the line with your desired target as followed: ```.language-command systemd.unit=rescue.target ```