1. Default boot into text mode
If you want the boot to automatically enter plain text mode,
Modify/etc/inittab
Find Them.
Id:5:initdefault:
This line indicates that the run level at startup is 5, which is the graphical mode
Change to 3 is text mode.
Id:3:initdefault:
This is because the Linux operating system has six different operating levels (run level), under different operating levels, the system has a different state, these six operating levels are:
0: Stop (remember not to set the Initdefault to 0, as this will make Linux unable to boot)
1: Single-user mode, just like the safe mode under Win9x.
2: Multi-user, but no NFS.
3: Full multi-user mode, standard run level.
4: Generally not, in some special circumstances can use it to do some things.
5:x11, that is, into the X-window system.
6: Reboot (remember not to set Initdefault to 6, as this will cause Linux to restart continuously).
Where run Level 3 is the standard console character interface mode we want to enter.
2. Force exit X-window Enter text mode
Open a terminal
Input init 3
(Note that there is a space behind Init), and so on, into the graphical interface
When the above method is switched, the window mode is completely closed. If a file is not saved in the window, it will be lost.
(Use init 5 to return to the graphical interface, but the original process is dead)
3. Do not exit X-window into text mode
Press the "alt+ctrl+ function key fn" (n=1~6) in the X-window graphical operator interface to enter the text-mode interface. This means you can have X-window plus 6 text-mode interfaces at the same time.
Press "Alt+ctrl+f7" to return to the X-window GUI from the text-mode interface. At this point, Linux opens 7 screens by default, numbered Tty1~tty7.
After the X-window is started, the Tty7 screen is occupied, and the Tty1~tty6 is still the character interface screen. In other words, the "ALT+CTRL+FN" combination of the character interface and the X Window interface can be quickly switched.
When X-window loses its response or crashes due to itself or application, we can easily exit X-window to enter the console for troubleshooting
---------------------------------------------------------------------------------
1, if the installation of the default format you choose is: the Desktop graphics format is:
CTRL+ALT+F1 graphic---> Text Format
Alt+f7 text Format = = = Graphical interface
2, if the installation of the default format you choose is: Text Format
StartX Convert to graphical interface
Graphics mode and text mode for Linux and single-user mode switching