LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 716|回复: 3

gnome下找不到reboot命令

[复制链接]
发表于 2011-2-20 14:32:24 | 显示全部楼层 |阅读模式
squeeze stable
gnome 2.30.2
2.6.32-5-686

在gnome下的终端里面输入reboot或者shutdown等命令后提示bash: reboot: command not found,但是在字符终端里面输入reboot就可以正常重启,请问如何解决?
已经安装bash补齐脚本bash-completion

zhang@debian:~$ whereis bash
bash: /bin/bash /etc/bash.bashrc /usr/include/bash /usr/share/man/man1/bash.1.gz
发表于 2011-2-20 15:06:59 | 显示全部楼层
Post by nsdy;2128640
squeeze stable
gnome 2.30.2
2.6.32-5-686

在gnome下的终端里面输入reboot或者shutdown等命令后提示bash: reboot: command not found,但是在字符终端里面输入reboot就可以正常重启,请问如何解决?
已经安装bash补齐脚本bash-completion

zhang@debian:~$ whereis bash
bash: /bin/bash /etc/bash.bashrc /usr/include/bash /usr/share/man/man1/bash.1.gz


要用sudo reboot吧。
回复 支持 反对

使用道具 举报

发表于 2011-2-20 15:19:21 | 显示全部楼层
which reboot
echo $PATH
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-2-20 18:02:23 | 显示全部楼层
Post by stesen;2128643
which reboot
echo $PATH

/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
目录都正确。。。  就是因为这样 所才才奇怪.
回复 支持 反对

使用道具 举报

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

本版积分规则

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