设置默认开机模式
systemctl set-default multi-user.target "默认进入字符界面"
systemctl set-default graphical.target "默认进入图形界面"
命令行界面进入图形界面
init 5
图形界面切换命令行界面
CTRL+ALT+F1-F6
关于init命令
Commands:
0 Power-off the machine
6 Reboot the machine
2, 3, 4, 5 Start runlevelX.target unit
1, s, S Enter rescue mode
q, Q Reload init daemon configuration
u, U Reexecute init daemon