linux中shutdown命令实现定时自动关机

来源:互联网 发布:淘宝清仓报名要求 编辑:程序博客网 时间:2024/04/26 18:35
在linux中可以用shutdown命令实现自动定时关机的功能,总结如下:
1、shutdown -r now  关机后重启
2、shutdown -h now  关机后不重启
3、shutdown -r +10 10分钟后重启
4、shutdown -r 10:00 10点钟重启
5、shutdown -h +10 10分钟后关机

6、shutdown -h 10:00 10点钟关机

win7:

1.at 23:00 shutdown -s

2.shutdown -f -s -t 3600(s)

    shutdown -a (stop)

0 0