Ubuntu graphical interface and character interface switching
Ubuntu, like other Linux systems, has a graphical interface and character interface, as well as the ability to set the default boot interface.
Linux display interface is divided into command line character interface and graphical interface , we can set the Linux default boot display interface. You can then manually switch back and forth.
Ubuntu in the graphical interface can use Ctrl+alt+t to open a new terminal, but in the character interface need to open more than one command line, the specific operation is:
CTRL+ALT+F1 a terminal ctrl+alt+f2 a second terminal .... Until the F6.
F7 's words are to return to Xwindow.
If you want Ubuntu to boot to command prompt each time, you can enter the following command:
$echo "false" | sudo tee/etc/x11/default-display-manager
When the next boot, will start in command line mode (text mode, character interface login) but the Ubuntu system will not automatically go to the character interface, will always be stuck in the logo interface, then as long as the ctrl+alt+6 entered the character interface.
If you want to change back to the GUI start (X Windows boot), you can enter:
$echo "/USR/SBIN/LIGHTDM" | sudo tee/etc/x11/default-display-manager
If the UBUNTN is started in command-line mode, the character terminal wants to return to the graphical interface with the following command:
$startx
This part of the above is that Ubuntu specifically got a file Default-display-manager. The content of this file to determine the level of start, now know two values, one is false only start the character interface, the other is/USR/SBIN/LIGHTDM will start the graphical interface.
Switch between the CentOS graphical interface and the character interface
CentOS graphical interface and character interface start and close unlike Ubuntu, the commands in CentOS are:
3 // close the graphical interface int 5 // turn on the graphical interface
Boot default to enter the character interface settings:
Vi/etc/inittab // Change the id:5:initdefault to Id:3:initdefault
Then save the exit and you're ready.
Linux character interface and graphical interface