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

What is the use of the init command in Linux

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

Editor to share with you what is the use of the init command in Linux, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Linux common command init command is a process initialization tool under Linux. The init process is the parent process of all Linux processes, and its process number is 1.

The initinit process is the parent process of all Linux processes

It is added that the init command is one of the indispensable programs in the Linux operating system. The init process is guided by the Linux kernel and is the first process in the system.

Syntax init (options) (parameters) option-b: enter single-user mode without executing the relevant script;-s: switch to single-user mode. Parameter run level: specify the run level to which the Linux system is to be switched.

Examples of several commonly used commands

View system process command: ps-ef | head View init configuration file: more / etc/inittab View the level of the system currently running: runlevel

Operation level

What exactly is the operational level? Simply put, the runtime level is the functional level at which the operating system is currently running. This level ranges from 0 to 6 and has different functions. You can also check its English introduction in / etc/inittab.

# 0 downtime (never set initdefault to 0) # 1 single-user mode # 2 multi-users, no NFS (similar to level 3, will stop some services) # 3 full multi-user mode # 4 does not use # 5 x11 (Xwindow) # 6 restart (never set initdefault to 6) the above are all the contents of the article "what is the use of init commands in Linux"? thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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

Development

Wechat

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

12
Report