为什么不能运行这些命令?请各位大虾指点指点
我在redhat 7。2下用root用户登录
有一文件为
-rwx------ root root a.sh
运行a.sh,提示bash:a.sh:command not found
修改文件属性
chmod 755 a.sh
-rwxr-xr-x root root a.sh
然后再运行,结果出现和上面一样的提示,请问这是由什么引起的
BTW:我现在network,netcfg,gcc都不能运行,也是提示command not found
问题点数:100、回复次数:2Top
1 楼hohoo(hohoo)回复于 2002-10-23 16:08:00 得分 60
1. 文件不在系统搜索路径内,可以加上 ./a.sh 运行
2. network,netcfg 新的版本执行文件名有所变化,你可试试netconfig,neat命令。
3. gcc如果安装成功应该在/usr/bin下能找到,按你说的好像没有安装,需要重新安装gcc。Top
2 楼nicholaz(九思·逢尤)回复于 2002-10-23 17:01:18 得分 40
./a.sh 试试Top




