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 Linux run level?

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article introduces the relevant knowledge of "what is the operating level of Linux". In the operation of actual cases, many people will encounter such a dilemma, 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!

As we all know, Windows has a safe mode, which is the minimum mode of Windows. Compared with the normal mode, safe mode allows users to do better system detection and bug repair. The run level of Linux is a similar mechanism, and different run levels have different functions:

As can be seen from the above figure, the six operating levels are: 0 system stop 1 single user mode 2 multiuser mode except NFS function (entering no network service) 3 complete multiuser mode 4 not using 5 X11 graphics mode 6 restart normally we are in a runlevel of 3 or 5, then how to switch, enter using "init + runlevel" and enter directly, for example, enter init 0 and the computer will shut down. Enter init 6 and the computer will restart

So how do you see what features can be used in this mode? see the scripts that can be run under the / etc/rc.d/init.d folder, as shown in the following figure

So how to view the script files that can be used in each mode? in the / etc/rc.d/rcN.d folder, you can view the corresponding files for each run level separately, as shown in the following figure

These six modes also have many features, for example, if you forget the root password, you can enter single-user mode, enter init = / bin/sh rw under the prompt interface after startup, enter mode 1, hang the root file as read and write, you can skip system authentication, directly use the passwd program to change the root user password, and then start to the normal operation level.

This is the end of the content of "what is the running level of Linux"? 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

Development

Wechat

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

12
Report