shutdown -h -now不能正常关机

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
吃好睡好
帖子: 6
注册时间: 2013-04-21 22:32
系统: ubuntu

shutdown -h -now不能正常关机

#1

帖子 吃好睡好 » 2013-04-22 21:30

我使用shutdown -h -now 不能关机,刚出现问题的时候是直接回到了登陆界面,类似于注销,
现在出现了这种情况
root模式下输入shutdown -h -now,
命令行提示
shutdown: invalid option: -o
try 'shutdown --help' for more information
这个问题该怎么解决 啊
我用init 0可以正常关机,poweroff也可以关掉电源,使用halt关机也会出现问题,halt能够执行,但是会卡在关机的界面动不了。
谢谢大家的帮助啊
上次由 吃好睡好 在 2013-04-22 21:35,总共编辑 1 次。
头像
duguyipiao
帖子: 158
注册时间: 2011-09-13 10:31

Re: shutdown -h -now不能正常关机

#2

帖子 duguyipiao » 2013-04-22 21:36

showdown -h now 不是 -now
吃好睡好
帖子: 6
注册时间: 2013-04-21 22:32
系统: ubuntu

Re: shutdown -h -now不能正常关机

#3

帖子 吃好睡好 » 2013-04-22 21:44

:em06 真是汗颜啊,谢谢了,不知不觉就加了个-now了,不过他回到登陆界面是怎么回事啊,还有halt关机有些问题
头像
duguyipiao
帖子: 158
注册时间: 2011-09-13 10:31

Re: shutdown -h -now不能正常关机

#4

帖子 duguyipiao » 2013-04-22 21:51

吃好睡好 写了::em06 真是汗颜啊,谢谢了,不知不觉就加了个-now了,不过他回到登陆界面是怎么回事啊,还有halt关机有些问题
这就不知道了,没遇到过。
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: shutdown -h -now不能正常关机

#5

帖子 YeLee » 2013-04-22 22:00

要poweroff,不要halt。
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
头像
leni
帖子: 1989
注册时间: 2008-09-28 17:24

Re: shutdown -h -now不能正常关机

#6

帖子 leni » 2013-04-23 2:08

sudo init 0
这条命令好
latex 是个命令集,不是软件,所以在应用程序里找不到,也不存在启动。使用的话,自己写个 .tex 的文件,用 latex 编译。viewtopic.php?f=35&t=331555 的 4楼 有入门教程PDF下载。
头像
速腾1994
论坛版主
帖子: 17379
注册时间: 2008-11-01 20:43
系统: Arch+gnome

Re: shutdown -h -now不能正常关机

#7

帖子 速腾1994 » 2013-04-23 9:14

init 0
头像
k9288k
帖子: 792
注册时间: 2012-02-21 22:27
系统: Ubuntu12.04

Re: shutdown -h -now不能正常关机

#8

帖子 k9288k » 2013-04-24 23:50

YeLee 写了:要poweroff,不要halt。
为什么呢?
头像
naturalaw
帖子: 1360
注册时间: 2011-09-06 22:04

Re: shutdown -h -now不能正常关机

#9

帖子 naturalaw » 2013-04-25 0:35

duguyipiao 写了:showdown -h now 不是 -now
是shutdown -h now
  • The eternal law
头像
zhw2101024
帖子: 1849
注册时间: 2009-03-28 16:10
系统: Arch debian win7
联系:

Re: shutdown -h -now不能正常关机

#10

帖子 zhw2101024 » 2013-04-25 13:06

halt是一个过时的命令,对应的硬件机制已经不存在了
头像
shuizhongyu
帖子: 287
注册时间: 2012-11-06 12:43
系统: arch,ubuntu
来自: 安徽合肥
联系:

Re: shutdown -h -now不能正常关机

#11

帖子 shuizhongyu » 2013-04-25 13:35

:em06
Luckily,I have google.

新手,请大家不吝赐教,十分感谢
头像
442449076
帖子: 388
注册时间: 2009-07-01 16:34

Re: shutdown -h -now不能正常关机

#12

帖子 442449076 » 2013-04-25 13:44

我都是输入: sudo shutdown -h 0
now比0要多两个字,输得累
头像
TeliuTe
论坛版主
帖子: 7668
注册时间: 2007-11-25 13:29
系统: 16/18/20/w7
来自: 新疆博乐
联系:

Re: shutdown -h -now不能正常关机

#13

帖子 TeliuTe » 2013-04-25 18:01

leni 写了:
sudo init 0
这条命令好
我也是用的这个
头像
k9288k
帖子: 792
注册时间: 2012-02-21 22:27
系统: Ubuntu12.04

Re: shutdown -h -now不能正常关机

#14

帖子 k9288k » 2013-04-26 1:27

zhw2101024 写了:halt是一个过时的命令,对应的硬件机制已经不存在了
这样啊
回复