我的没有shutdown啦!

各种窗口管理器和美化相关
回复
shaoyunfei
帖子: 62
注册时间: 2009-02-20 13:54

我的没有shutdown啦!

#1

帖子 shaoyunfei » 2009-05-30 23:56

我的是redflad6.0!怎么没有shutdown阿?用poweroff不能定时关机阿!
用shutdown就说"bash: shutdown: command not found"
头像
AngelMAX
帖子: 2228
注册时间: 2009-02-25 18:18

Re: 我的没有shutdown啦!

#2

帖子 AngelMAX » 2009-05-31 0:24

:em06
没用过这系统。

不过

代码: 全选

init 0
应该是通用的,但是这样关机不好,强烈不推荐。
在中国搞IT的谁不知道Ctrl+C,Ctrl+V啊~
shaoyunfei
帖子: 62
注册时间: 2009-02-20 13:54

Re: 我的没有shutdown啦!

#3

帖子 shaoyunfei » 2009-05-31 13:06

我是想定时关机!poweroff好像不可以吧?
我的是redflag6.0
头像
AngelMAX
帖子: 2228
注册时间: 2009-02-25 18:18

Re: 我的没有shutdown啦!

#4

帖子 AngelMAX » 2009-05-31 13:23

你可以看看命令的说明,有些命令其实就是个脚本,不同的系统不一样。
比如

代码: 全选

man XXX
或者

代码: 全选

XXX --help
之类的,没准你的poweroff能定时关机呢。

ps:红旗6.0我也没用过 :em06
在中国搞IT的谁不知道Ctrl+C,Ctrl+V啊~
shaoyunfei
帖子: 62
注册时间: 2009-02-20 13:54

Re: 我的没有shutdown啦!

#5

帖子 shaoyunfei » 2009-05-31 23:43

我知道了!我用man shutdown看了一下,这个系统shutdown的使用方法是/sbin/shutdown
谢谢!
头像
qiii2006
帖子: 1484
注册时间: 2008-08-20 18:33
来自: 泰达希尔
联系:

Re: 我的没有shutdown啦!

#6

帖子 qiii2006 » 2009-06-01 12:55

每次都是注销kde,然后终端下面sudo halt的人飘过 :em06
我苦阿
qiibeta@twitter.com

我是心之所在,你好,世界

I,KDE
tusooa
帖子: 6548
注册时间: 2008-10-31 22:12
系统: 践兔
联系:

Re: 我的没有shutdown啦!

#7

帖子 tusooa » 2009-06-01 13:36

shaoyunfei 写了:我知道了!我用man shutdown看了一下,这个系统shutdown的使用方法是/sbin/shutdown
谢谢!
NAME
shutdown - bring the system down

SYNOPSIS
shutdown [OPTION]... TIME [MESSAGE]

DESCRIPTION
shutdown arranges for the system to be brought down in a safe way. All logged-in users are notified that the system is
going down and, within the last five minutes of TIME, new logins are prevented.

TIME may have different formats, the most common is simply the word 'now' which will bring the system down immediately.
Other valid formats are +m, where m is the number of minutes to wait until shutting down and hh:mm which specifies the
time on the 24hr clock.

Once TIME has elapsed, shutdown sends a request to the init(8) daemon to bring the system down into the appropriate run-
level.
如果这样明显你没有su,很多linux发行版普通用户的PATH没有/sbin和/usr/sbin

代码: 全选

] ls -ld //
回复