Transferred from: http://blog.163.com/wang_ly2442/blog/static/9494340720128355054551/
1. Enter the character interface at startup and later want to switch to the graphical interface: using startx or init 5
(Note: StartX just added a graphical interface to the original RunLevel 3, the runlevel is unchanged, and init 5 is switching to RunLevel 5, so log back in.) Use the runlevel command to view the current run level and the last run level)
2. Enter the graphical interface at startup and later want to switch to the character interface:
With ctrl+alt+f1~ctrl+alt+f6, you can switch to a different character console (just six character consoles, no difference), then use ctrl+alt+f7 to switch back to the graphical interface;
If it is in virtual machine VMware, the graphical interface switches to the character interface:
Use ctrl+alt+shift+f1~ctrl+alt+shift+f6, and then use alt+f7 to switch back to the graphical interface.
(Note: The graphical interface is not closed after the above method has been switched)
3. Forcibly exit the X-window graphical interface into text mode:
Open a terminal, enter Init 3, and then enter the text interface.
(Note: The graphical interface is completely closed after the above method has been switched.) If a file is not saved in the window, it will be lost. With init 5 You can return to the graphical interface, but the original process is dead. Use STARTX to load the graphical interface on the current level 3)
4. Error when switching:
The current runlevel is 5, and an error occurs when you switch to the character interface and then enter the STARTX system via CTRL+ALT+F1.
5. Modify the Linux default boot level (mode)
As root vi/etc/inittab, find Id:5:initdefault: The row (where the ID may be another number). Modify ID Value:3 is the text mode ,5 is the interface mode . The document shall be reboot after it is held.
Linux graphical interface and character interface switching