QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 581|回复: 4

a question about shutdown

[复制链接]
发表于 2003-9-13 15:52:07 | 显示全部楼层 |阅读模式
i install rh9.0 recently, i want to shutdown in terminal,but it told me there is no such command.i know that "shutdown" is in /sbin.
and i once changed my .bash_profile,and added /sbin .but now i forget how to add.
who can help me ?
发表于 2003-9-13 17:11:53 | 显示全部楼层
are you the root?
only root can perform a shutdown command.

eg.
shutdown -h now
回复

使用道具 举报

 楼主| 发表于 2003-9-13 20:35:33 | 显示全部楼层
even if root can not do that thing,could you please show me the file of .bash_profile?
thx very much
回复

使用道具 举报

发表于 2003-9-13 22:16:58 | 显示全部楼层
"set PATH=/sbin:$PATH" to add /sbin in .bash_profile
everyone can perform a poweroff to shutdown in terminal in RH9
回复

使用道具 举报

 楼主| 发表于 2003-9-14 10:15:53 | 显示全部楼层
i am sorry, i remembered only root can shutdown even if i changed my .bash_profile,and could you please describe exactly?
thx a lot
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-20 15:20 , Processed in 0.046065 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表