Red Hat Enterprise Linu 7 3.1.13关机命令

来源:互联网 发布:中科大软件学院信息化 编辑:程序博客网 时间:2024/05/27 20:52

3.1.13 关机命令


shutdown、 init 、reboot poweroff halt
shutdown
作用:关机,重启,定时关机
语法:shutdown [选项]
-r => 重新启动计算机
-h => 关机
-h +时间 =>定时关机


[root@xuegod63 ~]# shutdown -h +10     #10分钟之后关机
[root@xuegod63 ~]# shutdown -h 23:30 #指定具体的时间点进行关机
[root@xuegod63 ~]# shutdown -h now #立即关机
shutdown -r now #立即重启
shutdown -r +10 #10 分钟以后重启
shutdown -r 22:22 # 22:22 以后重启