Linux uses the init command to shut down, restart, and switch the mode

Source: Internet
Author: User
Linux uses the init command to shut down, restart, and switch the mode... While learning and recording .. All I think is my personal opinion. Linux has a file named etcinittab [plain] inittabThisfiledescribeshowtheINITproc. Linux uses the init command to shut down, restart, and switch the mode... While learning and recording .. All my views are my personal opinions. Linux has a file/etc/inittab [plain] # inittab This file describes how the INIT process shoshould set up # the system in a certain run-level. # Author: Miquel van Smoorenburg, # Modified for RHS Linux by Marc Ewing and Donnie Barnes # Default runlevel. the runlevels used by RHS are: #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) # id: 3: initdefault: 0 indicates shutdown. 1 indicates single user. 2 indicates multiple users. 3 indicates multiple users. 4 indicates no use. 5 indicates xw. Indows, that is, the interface 6 is to restart the init command, which is very simple. Enter init + the desired mode and press enter. For example, input: init 0 is shutdown init 3 is the switch to multi-user init 5 is the switch to the interface init 6 is the restart of my experiment is carried out under the root user, do not know other users can, experiment again.
Related Article

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.