Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the Linux system shutdown command?

Shulou Source: shulou.com Published: 2022-06-01 20:14:21 10月18日 Update

This article mainly shows you "what is the Linux system shutdown command", which is easy to understand and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn this article "what is the Linux system shutdown command?"

Linux system shutdown commands: shutdown, halt, poweroff, reboot

The shutdown command shutdown will schedule a shutdown 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 upcoming shutdown, just enter the following command:

The # shutdown-chalt command halt tells 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 will send 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 to notify 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 "what is the Linux system shutdown command", thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Machines commands systems content time examples articles parameters learning help login importance creativity signals messages functions characters strings hours situations Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Apple macOS vpn Microsoft