Mac terminal 改写完.bash_profile文件后,始终找不到command
关键词
MacOS ;Terminal; .bash_profile ;添加文件路径; zsh: command not found;
背景
我在笔记本上安装Apache的ANT工具,在通过.bash_profile添加文件路径后,怎么都无法查看ant的版本,用echo $PATH命令查看已包含的文件路径,也无法显示ant文件的路径。
解决方法
使用 source .bash_profile 命令更新路径
更新完路径后,发现可以显示ant的版本了。
。。。然后之前装mongodb一直也是command not found,现在才知道原因。。。