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

What command is used to shut down the computer regularly under linux?

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly introduces "what command is used under linux to shut down regularly". In daily operation, I believe that many people have doubts about what command to use under linux to shut down timely. the editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubt about "what command to use under linux". Next, please follow the editor to study!

This paper introduces another function of the linux at command: using the linux at command to shut down the computer regularly under linux.

First create a file and write:

#! / bin/sh

Shutdown-h now

Save as power file. After that

After chmod + x power, you can use the linux at command to shut down at a fixed time.

But you need to have root permission to turn it off.

So the commands you need to enter are as follows:

Sudo at 02:00 tomorrow-f power after use

Sudo atq

You can check and select tasks that are executed regularly.

Sudo atrm

You can delete scheduled tasks.

At this point, the study of "what commands to use under linux to shut down regularly" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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