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>