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

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

使用

open .bash_profile

vim ~/.bash_profile

都无效

解决方法:

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

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

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

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

如下图:

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

 

相关文章:

  • 2021-06-19
  • 2022-01-17
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
  • 2021-05-10
  • 2021-08-28
猜你喜欢
  • 2021-12-01
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
  • 2022-03-06
  • 2022-12-23
相关资源
相似解决方案