+ -
当前位置:首页 → 问答吧 → 如何实现自动关机(关电源)!

如何实现自动关机(关电源)!

时间:2007-03-30

来源:互联网

用shutdown 试了不行了,要用什么参数啊?

作者: wygdm   发布时间: 2007-03-30

不是shutdown是halt

作者: clxer   发布时间: 2007-03-30

acpi问题?

作者: Thruth   发布时间: 2007-03-31

引用:
作者: wygdm
用shutdown 试了不行了,要用什么参数啊?
用poweroff

作者: biocyte   发布时间: 2007-03-31

Usage: shutdown [-akrhHPfnc] [-t secs] time [warning message]
-a: use /etc/shutdown.allow
-k: don't really shutdown, only warn.
-r: reboot after shutdown.
-h: halt after shutdown.
-P: halt action is to turn off power.
-H: halt action is to just halt.
-f: do a 'fast' reboot (skip fsck).
-F: Force fsck on reboot.
-n: do not go through "init" but go down real fast.
-z: shutdown using software suspend.
-c: cancel a running shutdown.
-t secs: delay between warning and kill signal.
** the "time" argument is mandatory! (try "now") **
比如说如果你想8分钟后关机的话:
su
shutdown -time 8
:》

作者: wychengcheng   发布时间: 2007-03-31

如果想马上关机的话:
shutdown -h now

作者: wychengcheng   发布时间: 2007-03-31

有的用shutdown不能切断电源,是ACPI的问题.最好用halt

作者: www1862   发布时间: 2007-03-31

请问用halt能实现定时关机不?

作者: wygdm   发布时间: 2007-03-31

热门下载

更多