jamesxuruo 发表于 2003-9-13 15:52:07

a question about shutdown

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 ?

EdwardRF 发表于 2003-9-13 17:11:53

are you the root?
only root can perform a shutdown command.

eg.
shutdown -h now

jamesxuruo 发表于 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

zq97_0 发表于 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

jamesxuruo 发表于 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
页: [1]
查看完整版本: a question about shutdown