halt

用途

关闭系统。

语法

halt [-dfinpw] 

描述

halt会先检测系统的runlevel。若runlevel为0或6,则关闭系统,否则即调用shutdown来关闭系统。

参数

-d  不要在wtmp中记录。
-f  不论现在的runlevel为何,不调用shutdown即强制关闭系统。
-i  在halt之前,关闭全部的网络界面。
-n  halt前,不用先执行sync。
-p  halt之后,执行poweroff。
-w  仅在wtmp中记录,而不实际结束系统。

例子

关机时,不要在 wtmp 文件中记录:

$ halt -d

相关命令

shells/commands/halt.txt · 最后更改: 2010/03/30 13:01 (外部编辑)
[unknown link type]到顶部
GNU Free Documentation License 1.3
京ICP备05034962号 Debian Driven by DokuWiki get firefox browser Recent changes RSS feed Valid XHTML 1.0