averainy's Blog

averainy

23 Oct 2023

How to Switch Boot Target to Text or GUI in Systemd Linux

Find wich target uni is used by default

sudo systemctl get-default

Switching boot target to text

  • To change boot target to the text mode:
Switching boot target to text
  • Reboot the system using the reboot command:
sudo systemctl reboot

How to switch boot target to GUI (graphical UI)

  • To change boot target to the GUI mode:
sudo systemctl set-default graphical.target
  • Reboot the system using the reboot command:
sudo systemctl reboot

Acknowledgements