MacOS下出现-bash: 命令: command not found的解决
1.在终端输入:vim ~/.bash_profile
2.在里面添加:export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin:.
3.在:wq后,输入:source ~/.bash_profile
本文介绍了解决MacOS下终端中遇到的-bash:命令:commandnotfound错误的方法。通过编辑~/.bash_profile文件并添加指定路径到PATH环境变量中,最后使配置生效来解决问题。
1.在终端输入:vim ~/.bash_profile
2.在里面添加:export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin:.
3.在:wq后,输入:source ~/.bash_profile
转载于:https://www.cnblogs.com/xuwenjie/p/10148321.html

被折叠的 条评论
为什么被折叠?