关机
1、sync:数据同步写入磁盘
2、shutdown
3、reboot,halt,poweroff
shutdown
-t 秒数:几秒后关机
-k 不是真正关机,而是发出告警信息
-r 在系统服务都停止后,重启
-h 在系统服务都停止后,关机
-f 关闭并且开机以后,强行略过磁盘检查
-F 重启后,强制进行磁盘检查
-c 取消已经进行的shutdown命令
例如:
shutdown -h now
shutdown -h 12:00
shutdown -h+10
init 0:关机
init 6:重启
init 3:纯文本模式
init 5:图形界面