How to switch the command line and desktop modes in CentOS

Source: Internet
Author: User
After CentOS is downloaded and installed, you just started to use it. here, let's take a look at the desktop mode and command line mode switching method. use the editor to open the/etc/inittab File (vi is used here, you can select one you like): # Open vi/etc/inittab as follows: Desktop mode... after CentOS is downloaded and installed, you just started to use it. here, let's take a look at the desktop mode and command line mode switching method. use the editor to open the/etc/inittab File (vi is used here, you can select the one you like): # vi/etc/inittab to open the following: Desktop mode: change the cursor location to id: 5 command line mode: change the cursor location to id: 3. after modification, switch vi to command mode (ESC switch). input: wq! Press enter to save and exit ., then restart the system. The command is: # reboot. By the way, it indicates the meaning of each option: 0. all processes will be terminated, and the machine will be stopped in sequence, when shutdown, the system is in this running level 1 single user mode. It is used for system maintenance. only a few processes run, and all services do not start the two-user mode. Like running level 3, the Network File System (NFS) service is not started in 3 multi-user mode. Allow multiple users to log on to the system. the default startup level 4 is reserved for the user-defined running level 5 multi-user mode, and X-Window is run after the system is started, the following figure shows that all processes in logon window 6 are terminated. if the system is restarted, use the command # startx to start to the desktop mode, then Ctrl + Alt + F2-F6 switch to different command line windows, Ctrl + Alt + F1 switch to desktop
Related Article

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.