Switching boot target to text

The procedure is as follows to change into a text mode runlevel under systemd:

  1. Open the terminal application.
  2. For remote Linux servers, use the ssh command.
  3. Find which target unit is used by default:
    systemctl get-default
  4. To change boot target to the text mode:
    sudo systemctl set-default multi-user.target
  5. Reboot the system using the reboot command:
    sudo systemctl reboot

How to switch boot target to text or GUI in systemd Linux

How to switch boot target to GUI (graphical UI)

Want to revert change boot to GUI instead of console/text mode? Try:

  1. Open the Linux terminal application.
  2. Again, for remote Linux servers, use the ssh command.
  3. Find which target unit is used by default:
    systemctl get-default
  4. To change boot target to the GUI mode:
    sudo systemctl set-default graphical.target
  5. Make sure you reboot the Linux box using the reboot command:
    sudo reboot

How to boot in to rescue mode

Run the following systemctl commandsudo systemctl rescue
We can change to a different systemd target unit in the current log in session using the CLI as follows:
sudo systemctl isolate multi-user.target
# OR #
sudo systemctl isolate graphical.target

What would get started if I booted into a specific target?

The systemd can calculate the “initial” transaction it would execute on boot, try something like this to see what services and stuff loaded in the graphical.target:
systemd --test --system --unit=graphical.target
The --test option is used to determine the initial start-up transaction, dump it, and exit without actually executing any of the determined jobs. How cool is that?

https://www.cyberciti.biz/faq/switch-boot-target-to-text-gui-in-systemd-linux/