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

How does Linux send custom messages to users before shutting down

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

Today, I would like to share with you how Linux sends custom messages to users before shutting down. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.

As a system administrator, you may want to send a message to warn them that the system is going to shut down before you shut down the server. By default, the shutdown command broadcasts information to other system users.

As a system administrator, you may want to send a message to warn them that the system is going to shut down before you shut down the server. By default, the shutdown command broadcasts this information to other system users as follows:

# shutdown 13:25

Linux shutdown operation broadcast message

Shutdown scheduled for Fri 2017-05-12 13:25:00 EAT, use 'shutdown-c' to cancel.Broadcast message for root@tecmint (Fri 2017-05-12 13:23:34 EAT): The system is going down for power-off at Fri 2017-05-12 13:25:00 EAT!

To send a custom message to other system users on the shutdown line, run the following command. In this case, the shutdown occurs two minutes after the command is executed.

# shutdown 2 The system is going down for required maintenance. Please save any important work you are doing now!

Suppose you have some key system operations, such as planning system backups or updates to take place when the system shuts down, as shown below, you can use the-c option to cancel the shutdown and continue to perform these operations:

# shutdown-c

Linux shutdown cancels message:

Shutdown scheduled for Fri 2017-05-12 14:10:22 EAT, use 'shutdown-c' to cancel.Broadcast message for root@tecmint (Fri 2017-05-14:10: 27 EAT): The system shutdown has been cancelled at Fri 2017-05-12 14:11:27 EAT! These are all the contents of the article "how Linux sends custom messages to users before shutting down". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to 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.

Share To

Development

Wechat

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

12
Report