命令行的运行级别:3
图形界面的运行级别:5
查看当前运行的级别
[root@localhost ~]# runlevel
图像界面到命令行到:
[root@localhost ~]# systemctl isolate multi-user.target
PolicyKit daemon disconnected from the bus.
We are no longer a registered authentication agent.
开机自启命令行
sudo systemctl set-default multi-user.target
命令行到图像界面:
[root@localhost ~]# systemctl isolate graphical.target
PolicyKit daemon disconnected from the bus.
We are no longer a registered authentication agent.
PolicyKit daemon reconnected to bus.
Attempting to re-register as an authentication agent.
We are now a registered authentication agent.
开机自启图形界面
sudo systemctl set-default graphical.target
快捷键 ctrl+alt+F2 图形界面和命令行界面来回切换
—在图像界面右键还可以调出命令行