Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the use of Linux's shutdown command

Shulou Source: shulou.com Published: 2022-06-01 17:33:42 09月10日 Update

This article mainly explains "what is the use of Linux's shutdown command". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is the use of Linux's shutdown command"?

Linux common commands the shutdown command can be used to perform a shutdown procedure and to send messages to all users' executing programs before shutting down, and shutdown can also be used to restart.

Syntax shutdown [- t seconds] [- rkhncfF] time [message] parameter description:

-t seconds: set the shutdown procedure after a few seconds.

K: it doesn't really turn off, it just sends warning messages to all users.

-r: turn it off and restart it.

-h: shut down the machine after shutdown.

-n: do not use the normal program to shut down, kill all the programs in progress by force and then shut down by yourself.

-C: cancel the shutdown that is already in progress.

-f: when shutting down, do not do fsck action (check the Linux file system).

-F: force the fsck action when shutting down.

Time: set the shutdown time.

Message: warning messages sent to all users.

Instance shuts down immediately

# shutdown-h now specifies to shut down after 10 minutes

# shutdown-h 10 restart the computer

# shutdown-r now Thank you for your reading. The above is the content of "what is the use of Linux's shutdown command". After the study of this article, I believe you have a deeper understanding of the use of Linux's shutdown command, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Commands programs users actions messages learning content parameters just examples that is commonly used ideas situations articles methods time more being knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple macOS Shulou Technology Microsoft Shulou Tech Info