Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The usage of the Linux basic command init

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "the usage of the Linux basic command init". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Init

Init is the parent of all processes, it is executed by the kernel, and all other processes can be started. When starting, the init directive refers to the configuration of the / etc/inittab file to complete the startup of other processes. The init is usually not executed by the user process, and the process id is expected to be 1. If not, it will actually execute telinit (8) and pass all the parameters to it.

The processes managed by init are called jobs and are defined by files in the / etc/init directory. Init (8) is an event-based init daemon. This means that the job will automatically start and stop through changes to the system state, including the start and stop of the job. This is different from the dependency-based init daemon, which starts a specified set of target jobs and iterates through their dependencies to resolve the order in which they should be started and the order required by other jobs. The main event is the startup (7) event, which is emitted after the daemon has loaded its configuration. Other useful events are starting (7), started (7), stopping (7), and stopped (7) events that are issued with job change status.

Init has seven levels of operation.

Operation level

Description

Shutdown

one

Single user mode

two

Multi-user mode, do not start nfs

three

Multi-user mode with network function

four

Keep

five

Graphical interface

six

Restart

The Upstart init (8) daemon does not track the runlevel itself, but is implemented entirely by user-space tools. The event issued to represent a change at the run level is the runlevel (7) event.

The scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.

1. Grammar

Init [options] [parameters]

2. List of options

Option

Description

-- help

Show help documentation

-- version

Show command version

-- verbose

Output detailed messages about job state changes and event releases to the system console or log, which is useful for debugging booting.

This is the end of the introduction to "the usage of the Linux basic command init". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report