To modify the Linux default boot level or mode

Source: Internet
Author: User

There are 7 boot levels in Linux, the default is X-window, like Windows window mode, and the operation and configuration of Linux are generally used in the form of input commands, like DOS operating system, how to let Linux start to enter this mode?

to enter Linux as an administrator, modify the file: /etc/inittab file

Find the " Id:5:initdefault: ", where the 5 is that X-window , as the default run level, we usually put 5 instead 3 can be.

A total of 7 start levels, respectively:

# 0-halt (do not set Initdefault to this)
# 1-single User mode
# 2-multiuser, without NFS (the same as 3, if you don't have networking)
# 3-full Multiuser mode
# 4-unused
# 5-x11
# 6-reboot (do not set Initdefault
to this)

Detailed explanations of each run level:

0 for downtime, the machine shuts down.

1 is a single-user mode, similar to the safe 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, in some special cases you can use it to do something. For example, you can switch to this mode to do some setup when your laptop's battery is running out.

5 is X11, into the X Window System.

6 Restart, the init 6 machine will restart.

0 and 6 are not generally used;

Run startx to boot to level 5.

To modify the Linux default boot level or mode

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.