LinuxSir.cn,穿越时空的Linuxsir!

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

fdisk和shutdown不能用

[复制链接]
发表于 2007-4-29 16:37:23 | 显示全部楼层 |阅读模式
我的Linux 的内核是2.4.20,在bash的shell中键入fdisk -l和shutdown now 时shell提示:comman not found,请问这是怎么回事啊!
发表于 2007-4-29 17:13:49 | 显示全部楼层
因为你不是root
回复 支持 反对

使用道具 举报

发表于 2007-4-29 19:29:06 | 显示全部楼层
Post by Foxie
我的Linux 的内核是2.4.20,在bash的shell中键入fdisk -l和shutdown now 时shell提示:comman not found,请问这是怎么回事啊!

因为你的 Shell 找不到这两个命令,也即这两个命令不在你当前的 PATH 环境变量中。
回复 支持 反对

使用道具 举报

发表于 2007-4-29 21:56:04 | 显示全部楼层
/sbin/fdisk 和 /sbin/shutdown 就可以了吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-1 12:59:03 | 显示全部楼层
The forth floor friend's answer is currect.Thank you very much!
回复 支持 反对

使用道具 举报

发表于 2007-5-1 13:53:26 | 显示全部楼层
Post by Foxie
The forth floor friend's answer is currect.Thank you very much!

其实三个回复都正确。
回复 支持 反对

使用道具 举报

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

本版积分规则

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