In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the relevant commands of shutdown in linux, which is very detailed and has certain reference value. Friends who are interested must finish reading it!
Linux shutdown commands are: shutdown command, halt command, poweroff command and reboot command. Shutdown will schedule a shutdown for the system, which can be used to stop, shut down, and restart the machine.
Detailed introduction:
Shutdown command
Shutdown will schedule a shutdown time for the system. It can be used to stop, shut down, and restart the machine.
You can specify a time string (usually now or hours / minutes with hh:mm) as the first parameter. You can also set up a broadcast message to be sent to all logged-in users before the system shuts down.
Important: if the time parameter is used, the / run/nologin file will be created 5 minutes before the system shuts down. To make sure no one can log in again.
Example of the shutdown command:
# shutdown# shutdown now# shutdown 13:20 # shutdown-p now# shut down the machine # shutdown-H now# stop the machine # shutdown-r09now# 35 # restart the machine in 09:35am
To cancel the impending shutdown, simply enter the following command:
# shutdown-c
Halt command
Halt notifies the hardware to stop all CPU functions, but still keeps the power on. You can use it to keep the system in a low-level maintenance state.
Note that in some cases it will shut down the system completely. The following is an example of the halt command:
# halt # stop the machine # halt-p # shut down the machine # halt-- reboot # restart the machine
Poweroff command
Poweroff sends an ACPI signal to notify the system to shut down.
The following is an example of the poweroff command:
# poweroff # shut down the machine # poweroff-halt # stop the machine # poweroff-reboot # restart the machine
Reboot command
Reboot notifies the system to restart.
# reboot # restart the machine # reboot-- halt # stop the machine # reboot-p # shut down the machine above is all the contents of the article "commands to shut down the machine in linux". Thank you for reading! Hope to share the content to help you, more related 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.
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.