Linux graphics and command interface switching

Source: Internet
Author: User

I. Situations where the system is not in a virtual machine

Switch to the command line interface using Ctrl+alt+f1~6; ctrl+alt+f7 switch to the graphical interface

Two. The system in the virtual machine situation

ctrl+alt+shift+f1~6 switch to the command line interface; Use ALT+F7 to return to the graphical interface

(Note: The graphical interface is not closed after the above method has been switched)

Three. Command mode modification

Open terminal, input init 3, enter.

The meaning of the numbers after Init:

 0-halt (do not set Initdefault to this)   //Downtime (don't set Initdefault to zero to 0 because this will cause Linux to fail to boot)
 1-si Ngle User mode                     //Single-user mode, just like the safe mode under WinXP
 2-multiuser, without NFS (the same as 3, if you don't have netwo rking)     //multi-user, but no NFS
 3-full multiuser mode                 //Full multi-user mode, standard run pole, which is the command line interface
 4-unused          //generally not, but in some special cases you can use him to do something
 5-X11                //Select this option, the system will enter the graphical login interface at login
 6- Reboot (do not set Initdefault to this)    //reboot (do not set Initdefault as 6 because this will cause Linux to restart continuously)
(note: After the above method switches, The graphical interface is completely closed. 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)

Four. Each boot directly into the character interface, you want to modify the Etc/inittab file, change the start level from 5 to 3

Terminal is executed as root Vi/etc/inittab open inittab file, edit save restart

Linux graphics and command interface switching

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.