[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)ide
1 圖形界面與控制檯界面的相互切換get
1)控制檯切換到圖形界面 #startxit
2)圖形界面切換到控制檯界面 Ctrl+Alt+F1-F6(Linux默認有tty1到tty6個終端)class
3)設置默認開機進入控制檯界面終端
[root@localhost ~]# 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.tab
4)設置默認開機進入圖形界面 di
[root@localhost ~]# 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.view
注意:當前版本已經沒法經過修改/etc/inittab,指定"id:3:initdefault"進入控制檯界面。當前圖形界面沒有找到啓動控制檯的圖標
vi