How to change the Linux default startup level

  

In Linux system, there are seven default startup levels, each of which means different meanings. How to modify the default startup level of Linux system? Let's learn together.

modify system startup level: modify the system default startup to over three user state, there are seven levels starting in Linux, the default is X-Window, like window mode Windows, and Linux operating And the configuration is generally done by input commands. Like the DOS operating system, how do you let Linux enter 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 the machine down and the machine is turned 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, into the X Window System.

6 In order to restart, running init 6 will restart the machine.

0 and 6 are generally not used;

Running startx can be started to level 5.

The above is the way to modify the default startup level of Linux. If you can't start the system because you have modified the startup level, you can use the method described in this article to modify it.

Copyright © Windows knowledge All Rights Reserved