In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to use the shutdown command in the linux system. 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 shutdown command can be used to perform shutdown procedures and to send messages to all users' running programs before shutting down, and shutdown can also be used to restart.
Operation before shutdown
(you don't have to do it)
You can use the who command to see who is online on the system.
Use the netstat-a command to view the online status of the network
Use the ps-aux command to view the programs executed in the background.
Execute the sync command several times before shutting down: data is written to disk synchronously.
2. The commonly used shutdown command shutdown
The shutdown command is used for the system shutdown command. The shutdown instruction can close all programs and restart or shut down the computer according to the needs of the user.
Syntax format: shutdown [options] [parameters]
Command format: shutdown [- t seconds] [- arkhncfF] time [warning message]
-t: add seconds after that, and turn off the computer in a few seconds
-K: it's not really turning off, it's just sending a warning message.
-r: restart after stopping the service of the system (commonly used)
-h: shut down immediately after stopping the service of the system (commonly used)
-n: turn off the computer directly with the function of shutdown without going through the init program
-f: force to skip the disk check of fsck after shutdown and power on
-F: force fsck disk check after the system is rebooted
-c: cancel the contents of the shutdown command that is already in progress
Example: shutdown-h 10
"turn it off in 10 minutes."
Shutdown-r now
Restart immediately
Shutdown-k now 'this system will reboot'
Only a warning message is issued and the system will not shut down
This is the end of this article on "how to use shutdown commands in the linux system". 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.