Linux下的shutdown命令
shutdown [options] [time] [wall]
options: --help 获取帮助
-h 关机
-r 重启
-c 取消
-k 仅显示警告信息wall
time: 两种形式:1/ hh:mm 24小时进制
2/ +m 表示m分钟后执行option操作 now alias to +0 表示立即执行 精度:分钟
wall: 警告信息,发给所有在此计算机上的用户。
Windows下的shutdown命令
shutdown [options] [time]
options: -s 关机
-r 重启
-a 取消
time: shutdown -s -t 100 表示100秒以后执行options操作。 精度:秒
at 23:00 shutdown -s 表示在23:00时刻执行options操作 精度:分钟
注意:at为任务调度指令。当到达23:00时执行后面的指令shutdown -s