LinuxSir.cn,穿越时空的Linuxsir!

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

shell出问题了,请协助解决

[复制链接]
发表于 2004-9-13 17:00:51 | 显示全部楼层 |阅读模式
按照步骤装了JAVA后改了环境变量后什么命令都不能用了.提示如下:

Last login: Mon Sep 13 16:21:16 2004 from 203.94.3.172
-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
[root@ithap root]# ls
-bash: ls: command not found
[root@ithap root]# ls
-bash: ls: command not found
[root@ithap root]#
[root@ithap root]#
[root@ithap root]#

怎么样恢复啊,急啊.谢谢大家了.
发表于 2004-9-13 17:07:31 | 显示全部楼层
是路径问题,修改回来就可以了
 楼主| 发表于 2004-9-13 17:08:52 | 显示全部楼层
什么命令都不能执行,怎么改呢.帮人帮到底吧,大哥.
发表于 2004-9-13 17:29:02 | 显示全部楼层
用绝对路径,再重新设置一下:
/bin/vi /etc/profile
 楼主| 发表于 2004-9-13 17:47:15 | 显示全部楼层
好的.OK.已经可以了.非常感谢你的帮助.谢谢.你确实是高手.
发表于 2004-9-13 17:52:34 | 显示全部楼层
建议:修改类似/etc/profile这样的配置文件,最好将原来的文件做一个备份,以防万一!
 楼主| 发表于 2004-9-14 10:18:24 | 显示全部楼层
是的.绝对应该这样做.谢谢.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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