# systemctl get-default
This will give you one of two “targets”, either
To change from one to the other, use one of these commands:
# systemctl set-default multi-user.target
Removed symlink /etc/systemd/system/default.target. Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/multi-user.target.
# systemctl set-default graphical.target
Removed symlink /etc/systemd/system/default.target. Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.
The same way as in CentOS 7
If you logged in GUI mode you can move to console anytime by pressing Ctrl+Alt+F1 and return to GUI at anytime using Ctrl+Alt+F7
To find out what mode Ubuntu is currently using, use command:
$ sudo systemctl get-default
This will give you one of two “targets”, either
To change from one to the other, use one of these commands:
$ sudo systemctl set-default multi-user.target
Removed symlink /etc/systemd/system/default.target. Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/multi-user.target.
$ sudo systemctl set-default graphical.target
Removed symlink /etc/systemd/system/default.target. Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.Then additionally you need to make changes in to /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="splash quiet" GRUB_CMDLINE_LINUX=""For CLI set options
GRUB_CMDLINE_LINUX_DEFAULT="text" GRUB_CMDLINE_LINUX="text"After change this file, run command
$ sudo update-grubthen reboot system