Adding a path to the .bashrc file?

岁酱吖の 提交于 2019-11-30 03:39:04
Brian Agnew

The PATH should contain the directory for the binaries, not the binaries themselves.

For example, in the above:

export PATH=/home/michael/ns-allinone-2.34/bin/ns:..

should actually be:

export PATH=/home/michael/ns-allinone-2.34/bin:...
user1830432

Also if you export path like this, you want to keep old PATH as well, therefore include it as well.

export PATH=$PATH:/home/michael/ns-allinone-2.34/bin/
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!