在图形界面使用 ctrl+alt+F2切换到dos界面

dos界面 ctrl+alt+F2切换回图形界面

在命令上 输入 init 3 命令 切换到dos界面

输入 init 5命令 切换到图形界面

如果想系统默认以某种方式启动, 使用systemd创建符号链接指向默认运行级别。
修改方法为:

  1. 首先删除已经存在的符号链接:
rm /etc/systemd/system/default.target 
  1. 默认级别转换为3(文本模式):
ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target

或者默认级别转换为5(图形模式):

ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target 

3.重启:

reboot 

相关文章:

  • 2021-12-07
  • 2021-12-07
  • 2021-11-24
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
  • 2021-11-23
  • 2021-11-24
猜你喜欢
  • 2021-12-07
  • 2021-12-03
  • 2021-11-19
相关资源
相似解决方案