关机重启命令
系统命令
1.关机
shutdown : 关机或重启
参数: -h : 指定关机的延时时间
-c : 取消关机
halt : 禁用CPU资源
poweroff : 关闭电源
init :设置系统启动模式
0 : 关机
1 : 单用户模式
2 : 多用户无网络模式
3 : 多用户模式
4 : 待定
5 : 桌面模式
6 : 重启
reboot :重启
2.重启
reboot
init
shutdown
参数: -r : 指定重启的延时时间