Modify the default startup level of Linux system

  

Modify the system startup level: modify the system default boot to 3 multi-user state, there are 7 startup levels in Linux, the default is X-Window, like Windows window mode, and Linux Operation and configuration are generally done by inputting commands. Like the DOS operating system, how do you get Linux into this mode as soon as it starts?

Step 1: Enter Linux as an administrator and modify the file: /etc/inittab file.

Step 2: Find “id:5:initdefault:”, where 5 is X-Window, the default run level, we can change 5 to 3.

# 0 - halt (Do NOT set initdefault to this) # 1 - Single user mode # 2 - Multiuser, without NFS (The same as 3, if you do not have networking) # 3 - Full multiuser mode # 4 - unused # 5 - X11 # 6 - reboot (Do NOT set initdefault to this) Detailed explanation of each run level: 0 is down, the machine is off. 1 is single-user mode, similar to the security mode under Win9x. 2 is multi-user mode, but there is no NFS support. 3 is the full multi-user mode and is the standard run level. 4 Generally not used, in some special cases you can use it to do something. For example, when the laptop's battery is exhausted, you can switch to this mode to make some settings. 5 is X11, and entered the X Window System. 6 In order to restart, running the init 6 machine will restart. 0 and 6 are generally not used; run startx to boot to level 5.

Copyright © Windows knowledge All Rights Reserved