关机
shutdown:用于对系统执行关机操作
shutdown -t 推迟多少秒关机
-f 重新启动不执行fsck命令
-h 将系统关机
-r 关机后重新启动
reboot:重启
init:init0 关机
init6 重启
halt:关机
命令格式
[root@localhost ~]# shutdown [选项]时间[警告信息]
选项:
-c 取消已经执行的shut down命令
-h 关机
-r 重启
如:设置推迟30秒关机
[root@localhost ~]# shutdown -t +30