linux system interface converter

Switching commonly used: Command Line -> Graphics startx or ctrl + alt + F7 switch to a graphical interface, which virtual machines using Alt + F7 to return to the graphical interface picture -> Command Line Ctrl + Alt + F1 - F6 To boot start enter the default interface to boot into a command line to modify / etc / inittab file "id: 3: initdefault" boot into the graphical interface to modify / etc / inittab file "id: 5: initdefault" Also you can use the init command interface to achieve installed for: a. init program is one of the Linux operating system indispensable. The so-called init process, which is initiated by a user-level kernel process. After the kernel itself started (that has been loaded into memory, start running and initializes all the device drivers and data structures, etc.), it starts by a user-level program init manner, to complete the boot process. So, init is always the first process (its process number is always 1). The kernel has been used in the past to find a few places init of it, it's correct position (for Linux systems) is / sbin / init. If the kernel can not find init, it will try to run / bin / sh, if fails, the system will fail to start. Second init total is divided into seven levels, seven levels of meaning represented by the following 0: Stop or power down (initdefault must not be set to 0) 1: single-user mode, only the root user maintenance 2: Multi-User mode, you can not use NFS (Net file System) 3: full multiuser mode (standard operating level) 4: safe mode 5: graphical (ie graphical interface) 6: reboot (do not put initdefault to 6) centos file under See: cat / etc / inittab 7. # Default runlevel the runlevels used by RHS are:. 8. # 0 - halt (Do NOT set initdefault to this) 9. # 1 - Single user mode 10. # 2 - Multiuser, without NFS (The same as 3, if you do not have networking) 11. # 3 - Full multiuser mode 12. # 4 - unused 13. # 5 - X11 14. # 6 - reboot (Do NOT set initdefault to this) 15 . # 16. id: 3: initdefault: 12345678910111213141516 look at the code on line 16, where you can set the default startup mode, if set to id: 3: initdefault: this represents the default boot command line mode. If set to id: 5: initdefault: This represents the default startup mode for the graphical interface. Note: The default must not be set to 0 or 6. Because 0 means shutdown, restart 6 representatives.

Guess you like

Origin www.cnblogs.com/lph970417/p/11411406.html