$ $PATH
返回:
-bash: /usr/local/share/npm/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/local/sbin:~/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin: No such file or directory
这似乎很丑陋,可能是giving me issues与自制和运行以及。
您需要使用命令echo $ PATH显示PATH变量,或者您只需执行set或env来显示所有环境变量。
原文链接:https://www.f2er.com/bash/391011.html通过键入$ PATH,您试图将PATH变量内容作为命令名运行。
Bash以任何方式显示您的路径的内容。根据您的输出,将按以下顺序搜索以下目录:
/usr/local/share/npm/bin /Library/Frameworks/Python.framework/Versions/2.7/bin /usr/local/bin /usr/local/sbin ~/bin /Library/Frameworks/Python.framework/Versions/Current/bin /usr/bin /bin /usr/sbin /sbin /usr/local/bin /opt/X11/bin /usr/local/git/bin
对我来说,这个列表似乎是完整的。