In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what is the use of the runlevel command in Linux. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
The Linux common command runlevel command is used to print the running level of the current Linux system.
Runlevel prints the running level of the current Linux system
Syntax runlevel knowledge extension the linux operating system goes through several different stages from boot to boot, which are called runlevel. Similarly, when the linux operating system shuts down, it also goes through several different runlevel. Here we are going to introduce runlevel in detail and show you some tips to avoid unnecessary restarts of your linux system.
Runlevel can be thought of as the state of the system. Figuratively, you can think of runlevel as a bit like Normal,safemode and command prompt only in Microsoft's windows operating system. To enter each runlevel, you need to start or shut down the corresponding series of services (services), which are placed in the directory / etc/rc.d/rc?.d/ or / etc/rc?.d (?) as initialization scripts. Represents the corresponding serial number of runlevel).
In most linux distributions, there are usually eight runlevel:
0 downtime 1 single-user mode 2 multi-user, without NFS 3 complete multi-user mode 4 does not use 5 graphical interface 6 restart most S s Single user mode desktops linux system default runlevel is 5, user login is graphical interface, while most server versions of linux system default runlevel is 3, user login is character interface, runlevel 1 and 2 are rarely used except debugging Runlevel s and S are not intended for use directly by users, but are used to prepare for Single user mode.
The advantage of linux running mode over windows startup mode is that you can use the init command to switch your current runlevel when the system is idle. In addition, when you shut down or start the linux system, you have unwittingly switched your runlevel, and the system shutdown process needs to call runlevel (0 or 6) to shut down all running processes.
This is the end of this article on "what is the use of runlevel commands in Linux?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.