2010年1月3日星期日

linux 关机——重启命令

1、shutdown
shutdown [选项] [时间] [message]
-h 关机
-r 重启
-c 取消一个正在执行的shutdown动作
-k 只发送message,而不真正的shutdown
[时间] 18:00(hh:mm),now,+5(分钟)等格式
2、halt
关机指令,会调用shutdown来关机
使用-f来强行关机,不调用shutdown
3、poweroff
4、init 运行级别
通过使用init来修改系统运行的级别,0(关机)6(重启)
使用runlevel可以查看当前运行的级别

没有评论: