How to switch the command line and desktop modes in centos

Source: Internet
Author: User
How to switch the command line and desktop modes in centos How to switch between desktop mode and Command Line Mode

Open the/etc/inittab file in the editor (VI is used here, you can choose one you like ):

# Vi/etc/inittab

Open as follows:

Desktop mode: Change the cursor location to ID: 5

Command Line Mode: Change the cursor location to ID: 3

After the modification, switch VI to command mode (ESC switch). Input: WQ! Press enter to save and exit. (For more information about the VI command), and then restart the system. The command is: # reboot

By the way, the meaning of each option is described as follows:

0. All processes will be terminated, and the machine will be stopped in an orderly manner. when the machine is shut down, the system will be in this running level.

1. single-user mode. Used for system maintenance. Only a few processes run and all services are not started.

2-user mode. Like Level 3, the Network File System (NFS) service is not started.

3 multi-user mode. Allows multiple users to log on to the system, which is the default startup level of the system.

4 left to the user's custom running level

5-user mode. After the system is started, run X-window to provide a graphical logon window.

6. All processes are terminated and the system restarts.

If you only need temporary command line and desktop mode switches, you can use command # startx to start to desktop mode, and then CTRL + ALT + F2-F6 to switch different command line windows, CTRL + ALT + F1 switch to the desktop.

Search for the following content in this article:
    • Centos
    • Centos Desktop
    • Centos desktop startup
    • Centos command line
    • Centos Desktop
    • Centos 6 0
    • Centos6
    • Centos command
      Source: http://luckerme.com/archives/614.html> 
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.