Home > Operation and Maintenance > Linux Operation and Maintenance > How to set up scheduled shutdown in Linux

How to set up scheduled shutdown in Linux

王林
Release: 2023-05-19 14:10:56
forward
2315 people have browsed it

Linux scheduled shutdown setting method:

Run command method: Press "Win R" to open "Run" and enter cmd Open "Command Prompt"

Enter the shutdown command:

1, halt Shut down immediately

2, poweroff Shut down immediately

3, shutdown -h now Shut down immediately (for root users)

4, shutdown -h 10 Automatic shutdown after 10 minutes

If you want to terminate the 10-minute shutdown executed above, execute: shutdown -c

5, shutdown -h 22:00 Hope to shut down the computer at 22:00

6, shutdown -r now Restart immediately

How to set up scheduled shutdown in Linux

Linux scheduled shutdown format setting:

The input command format is:

shutdown [Option] [Time ] [Message]

and has the following options:

- k Does not perform any shutdown operation, only sends a warning message to all User

- r Restart computer

- h Shut down and completely power off

- f Quick shutdown and skip fsck when restarting

- n Quick shutdown without going through the init program

- c Cancel the previous scheduled shutdown

How to set up scheduled shutdown in Linux

The above is the detailed content of How to set up scheduled shutdown in Linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template