配置.bash_profile文件 导致大量命令失效 报错信息-bash: xxx: command not found

由于在.bash_profile配置路径导致终端部分命令失效

使用

open .bash_profile

vim ~/.bash_profile

都无效

解决方法:

打开访达,前往文件夹~/.bash_profile

双击.bash_profile文件,查看配置路径,由于配置的Android adb路径后面没有添加:$PATH导致

添加并保存之后再终端执行source ~/.bash_profile 使新的配置生效

如下图:

 

posted @ 2019-11-08 13:11  Belinda_sl  阅读(1784)  评论(0编辑  收藏  举报