Home > Article > Operation and Maintenance > How to set up scheduled shutdown in Linux
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
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
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!