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