Centos7 switch between the image interface and dos Interface
Use in GuiCtrl + alt + F2 switch to dos Interface
Dos InterfaceCtrl + alt + F2 switch back to graphic interface
EnterSwitch the init 3 command to the command line (dos) Interface
InputSwitch the init 5 command to the graphic interface
If you want the system to start in a certain way by default
Use systemd to create a symbolic link pointing to the default running level.
The modification method is as follows:
1. delete an existing Symbolic Link
----------------------------------------------------------------------------------
Rm/etc/systemd/system/default.tar get
----------------------------------------------------------------------------------
2. The default level is 3 (text mode)
----------------------------------------------------------------------------------
Ln-sf/lib/systemd/system/multi-user.target/etc/systemd/system/default.tar get
----------------------------------------------------------------------------------
Or the default level is 5 (graphic mode)
----------------------------------------------------------------------------------
Ln-sf/lib/systemd/system/graphical.tar get/etc/systemd/system/default.tar get
----------------------------------------------------------------------------------
3. Restart
----------------------------------------------------------------------------------
Reboot
Versions earlier than centos 7
Edit/etc/inittab as Administrator
Set
Id: 5: initdefault:
Change
Id: 3: initdefault:
OK.
==================================
1. Command mode
Systemctl set-default multi-user.target
2. graphic mode
Systemctl set-default graphical.tar get
======================================
Command Line Mode Switching:
Systemctl set-default multi-user.target
Restart the machine.