In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
How many ways can linux shut down the system? In view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
Shutdown-h now shuts down immediately
Shutdown-r now restart immediately
Linux command: shutdown
Function description: system shutdown instruction.
Grammar: shutdown [- efFhknr] [- t seconds] [time] [warning message]
Additional note: the shutdown instruction can close all programs and restart or shut down the computer according to the needs of the user.
Parameters:
-c when the "shutdown-h 11:50" instruction is executed, the shutdown instruction can be interrupted simply by pressing the + key.
-f fsck (disk maintenance) is not performed on restart.
-F executes fsck when restarting.
-h shut down the system.
-k only sends information to all users, but does not actually turn it off.
-n does not call the init program to shut down, but by the shutdown itself.
-r restart after shutdown.
-t how many seconds to delay between sending a warning message and deleting a message.
[time] set how long it takes to execute the shutdown instruction.
[warning message] the information to be sent to all logged-in users.
The difference between shutdown, Halt, init and reboot:
When shutdown is called, it sends a signal (signal) to the init program, asking it to change the runlevel, depending on the parameters (close or restart).
Both halt and reboot are links to a command from shutdown. Halt is equivalent to shutdown-h now, that is, shutdown; reboot is equivalent to shutdown-r now, which restarts the system.
As the first program of the Linux system, Init has several runlevel, such as 0-off 1-single user mode 3-character interface 5-graphical interface 6-restart, so using Init for shutdown or restart is similar to shutdown and more direct than shutdown (no need to send a signal).
There are several answers to questions about the method of shutting down the linux system. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.