免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 854 | 回复: 6
打印 上一主题 下一主题

我的大部分系统命令都用不了了(帮帮忙啊!跪地求了!) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-03-11 22:32 |只看该作者 |倒序浏览

我在redhat Enterprise Es release 3下装了j2sdk ,然后在/etc/profile
里加了一行:
PATH=$PAHT:/home/soft/j2sdk1.5.0/bin/
其他的我都没动,退出后再登录,就显示:
-bash: id: command not found
-bash: [: =: unary operator expected
/bin/egrep: line 2: exec: grep: not found
-bash: id: command not found
-bash: dircolors: command not found
-bash: grep: command not found
-bash: grep: command not found
-bash: id: command not found
-bash: [: =: unary operator expected
-bash: cut: command not found
-bash: tr: command not found
-bash: cut: command not found
-bash: tr: command not found
-bash: id: command not found
-bash: id: command not found
-bash: id: command not found
-bash: [: too many arguments
-bash: tput: command not found
-bash: tput: command not found
-bash: wc: command not found
-bash: [: : integer expression expected
然后就麻烦了,ls,vi ,cat 等大部分命令都用不了了,目前发现只有cd可以用,但java的命令却可以用。想重新写过/etc/profile,vi命令又用不了,真的郁闷啊!各位高手请帮帮忙,小弟跪地求了!

论坛徽章:
0
2 [报告]
发表于 2004-03-11 22:37 |只看该作者

我的大部分系统命令都用不了了(帮帮忙啊!跪地求了!)

用软盘或FTP上传吗!重新写过/etc/profile

论坛徽章:
0
3 [报告]
发表于 2004-03-11 22:45 |只看该作者

我的大部分系统命令都用不了了(帮帮忙啊!跪地求了!)

还有没有其他的办法啊,因为现在ftp也用不了,软盘就更不用说了,难道不成要重装系统,晕啊!

论坛徽章:
0
4 [报告]
发表于 2004-03-11 23:10 |只看该作者

我的大部分系统命令都用不了了(帮帮忙啊!跪地求了!)

PATH=$PAHT:/home/soft/j2sdk1.5.0/bin/
粗心了不是。$PATH  不是 $PAHT
# /bin/vi /etc/profile

顺便说一句,
这种问题肯定是PATH环境变是不对,自己检查一下就OK了,不能什么都问啊

论坛徽章:
0
5 [报告]
发表于 2004-03-11 23:11 |只看该作者

我的大部分系统命令都用不了了(帮帮忙啊!跪地求了!)

你加了一行后就把所有的其它路径都取消了

论坛徽章:
0
6 [报告]
发表于 2004-03-11 23:13 |只看该作者

我的大部分系统命令都用不了了(帮帮忙啊!跪地求了!)

cd还可以呀,进入BIN目录应该可以执行系统大部分命令吧

论坛徽章:
0
7 [报告]
发表于 2004-03-12 07:27 |只看该作者

我的大部分系统命令都用不了了(帮帮忙啊!跪地求了!)

风云使者 说的是!
多谢风云使者和neteros了!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP