1.启动进入命令行界面
systemctl set-default multi-user.target
or with --force
systemctl set-default -f multi-user.target
Double-check with:
systemctl get-default
GRUB_CMDLINE_LINUX_DEFAULT="quiet systemd.mask=kdm.service"
kernel command line (/proc/cmdline
You can press Ctrl+Alt+F3 on keyboard to switch from the current session to tty3 text console, and switch back via Ctrl+Alt+F2.
GRUB_CMDLINE_LINUX_DEFAULT="text" is not working
说明:在ubuntu20.04中修改/etc/default/grub的方法不生效(其步骤如下):
命令:
sudo gedit /etc/default/grub
将GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" 改成
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text"
在输入命令:
sudo update-grub