Differences between init6 and reboot during Linux restart

Source: Internet
Author: User
Article Title: differences between init6 and reboot during Linux restart. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

The init command is used to change the operating level of the operating system.

Init 6 restarts the machine.

Reboot also restarts the machine.

So what are the differences between the two commands?

Use the man command to view the two operations as follows:

Init 6 Stop the operating system and reboot to

State defined by the initdefault entry in

/Etc/inittab.

Reboot-reboot performs a sync (1 M) operation on the disks, and then

Multi-user reboot is initiated. See init (1 M) for details.

"Init 6" is based on a series of/etc/inittab files, and each application has a corresponding shutdown script.

'Init 6' calls a series of shutdown scripts (/etc/rc0.d/K *) to gracefully shut down the system;

'Reboot' does not execute these processes. reboot is a kernel-level command and does not use the shutdown script for applications. .

We should usually use init 6.

Use reboot in case of a problem or force restart.

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.