关于bash :- : no such file or directory的错误

登录进入ubuntu10.04之后,报了很多-bash:-:nosuchfileordirectory错误,进入之后,不管输入什么命令,都会显示bash:命令名:nosu... 登录进入ubuntu 10.04之后,报了很多-bash :- : no such file or directory 错误,进入之后,不管输入什么命令,都会显示 bash :命令名 : no such file or directory。
下面是复制的错误:

Last login: Sat May 5 17:07:04 2012 from 219.217.240.58
-bash: export: `/usr/local/jdk1.6.0_31': not a valid identifier
-bash: export: `/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/bin': not a valid identifier
-bash: lesspipe: No such file or directory
-bash: dircolors: No such file or directory
-bash: uname: No such file or directory
-bash: [: !=: unary operator expected
-bash: [: too many arguments
-bash: [: too many arguments
-bash: [: too many arguments
-bash: [: =: unary operator expected
-bash: [: too many arguments
-bash: [: too many arguments
-bash: [: =: unary operator expected
-bash: [: =: unary operator expected
-bash: [: =: unary operator expected
-bash: [: =: unary operator expected
-bash: [: =: unary operator expected
-bash: sed: No such file or directory
-bash: [: too many arguments
-bash: [: =: unary operator expected
-bash: [: too many arguments
-bash: [: too many arguments
-bash: [: =: unary operator expected
-bash: [: =: unary operator expected
-bash: [: =: unary operator expected
-bash: [: =: unary operator expected
administrator@imss:~$ cd /etc
administrator@imss:/etc$ ls
-bash: ls: No such file or directory
administrator@imss:/etc$
administrator@imss:/etc$ echo $JAVA_HOME

administrator@imss:/etc$ echo $LANG
en_US.UTF-8
administrator@imss:/etc$ ls ~
-bash: ls: No such file or directory
administrator@imss:/etc$ cd ~
administrator@imss:~$ cd a-bash: expr: No such file or directory
-bash: [: : integer expression expected

-bash: cd: a: No such file or directory
administrator@imss:~$ sudo reboot
-bash: sudo: No such file or directory
administrator@imss:~$ la
-bash: ls: No such file or directory
administrator@imss:~$ ls
-bash: ls: No such file or directory
administrator@imss:~$
展开
 我来答
jg989627
2012-05-05 · 超过11用户采纳过TA的回答
知道答主
回答量:30
采纳率:0%
帮助的人:30.5万
展开全部
应该是环境变量被修改了,你输入命令echo $PATH看一下你的路径配置 ,如果不对,一般在.bashrc或.bash_profile中修改
金山毒霸
2024-10-31 广告
大部分系统错误,是因为某些DLL文件丢失造成的,比如未安装DirectX9或DirectX 9.0组件已损坏、缺少Visual C ++库、未安装.net库。解决方法如下:一、 手动解决方法1、先确定电脑操作系统是多少位的,现在的电脑一般都... 点击进入详情页
本回答由金山毒霸提供
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式