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

How to set up scheduled shutdown in Linux

王林
王林forward
2023-05-19 14:10:562257browse

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!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete