Centos命令行报bash:.....:command not found的解决办法
2017-09-15 22:01
706 查看
原文链接:http://www.cnblogs.com/therunningfish/p/6106553.html
命令行报bash:.....:command not found的解决办法(几乎所有命令)
命令行输入命令执行后报“bash:....:command not found”这是由于系统PATH设置问题,PATH没有设置对,系统就无法找到精确命令了。
1、在命令行中输入:export PATH=/usr/bin:/usr/sbin:/bin:/sbin 这样可以保证命令行命令暂时可以使用。命令执行完之后先不要关闭终端。
2、在命令行中输入 vi /etc/profile 查看是否自己另外设置了PATH属性。
在Vi编辑器中输入
export PATH=$PATN:/usr/java1.8/bin:/usr/java1.8/jre/bin 原来在配置JAVA的时候环境变量写错
改为export PATH=$PATH:/usr/java1.8/bin:/usr/java1.8/jre/bin
:wq保存此文件
在终端输入source profile
即命令行报bash:.....:command not found的解决办法
3、关闭终端,重新打开终端,输入命令执行,OK,全部正常!
我的Linux系统是由于设置JAVA环境变量时设置PATH属性导致command not found错误
命令行报bash:.....:command not found的解决办法(几乎所有命令)
命令行输入命令执行后报“bash:....:command not found”这是由于系统PATH设置问题,PATH没有设置对,系统就无法找到精确命令了。
1、在命令行中输入:export PATH=/usr/bin:/usr/sbin:/bin:/sbin 这样可以保证命令行命令暂时可以使用。命令执行完之后先不要关闭终端。
2、在命令行中输入 vi /etc/profile 查看是否自己另外设置了PATH属性。
在Vi编辑器中输入
export PATH=$PATN:/usr/java1.8/bin:/usr/java1.8/jre/bin 原来在配置JAVA的时候环境变量写错
改为export PATH=$PATH:/usr/java1.8/bin:/usr/java1.8/jre/bin
:wq保存此文件
在终端输入source profile
即命令行报bash:.....:command not found的解决办法
3、关闭终端,重新打开终端,输入命令执行,OK,全部正常!
我的Linux系统是由于设置JAVA环境变量时设置PATH属性导致command not found错误
相关文章推荐
- Centos命令行报bash:.....:command not found的解决办法
- Centos命令行报bash:.....:command not found的解决办法
- Centos命令行报bash:.....:command not found的解决办法
- CentOS提示 -bash: patch: command not found 解决办法
- Centos出现-bash: unzip: command not found的解决办法
- Centos提示-bash: make: command not found的解决办法
- Centos提示-bash: make: command not found的解决办法
- Centos出现-bash: unzip: command not found的解决办法
- Linux命令行报bash:.....:command not found的解决办法
- Centos提示-bash: make: command not found的解决办法
- Centos提示-bash: make: command not found的解决办法
- linux 命令行报bash command not found的解决办法
- CentOS提示 -bash: patch: command not found 解决办法
- Centos6.3 提示-bash: make: command not found的解决办法
- Linux命令行报bash:.....:command not found的解决办法
- Linux命令行报bash:.....:command not found的解决办法
- centos 下bash: adb: command not found解决办法
- Centos6.5最小化安装locate命令command not found解决办法
- bash:yum:command not found 解决办法
- bash: ifconfig: command not found 解决办法