Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use the shutdown command of linux to shut down the server

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the use of linux's shutdown command to shut down the server, which has a certain reference value, and friends who need it can refer to it. Let's take a look at it with me.

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]

Common parameters:

-c when the "shutdown-h 11:50" instruction is executed, you can simply press the + key to interrupt the shutdown instruction-f does not execute the fsck-F restart and executes the fsck-h to shut down the system-k only sends out information to all users, but does not actually shut down-n does not call the init program to shut down, but the shutdown does-rshutdown and then restarts-t sends out the warning message and deletes the message

Reference example

Specify that the computer should be turned off immediately:

[root@linuxcool] # shutdown-h now

Specify the shutdown after 5 minutes, and send a warning message to the logged-in user:

[root@linuxcool ~] # shutdown + 5 "System will shutdown after 5 minutes"

Cancel shutting down the system at the scheduled time:

[root@linuxcool] # shutdown-c

Restart the server:

[root@linuxcool] # shutdown-r now

Shut down the system at the scheduled time:

[root@linuxcool ~] # shutdown-h hours:minutes above is the details of shutting down the server using linux's shutdown command. Have you learned anything after reading it? If you want to know more about it, welcome to the industry information!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report