centos7 命令行和圖形界面切換——linux運行級別

命令行的運行級別: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 圖形界面和命令行界面來回切換

    —在圖像界面右鍵還可以調出命令行

 


 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章