Closed. This question is off-topic。它当前不接受答案。
想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
3年前关闭。
我从.profile和.bashrc中删除了我之前在$ PATH变量中添加的路径,但是在后者中仍然存在。我真的不明白为什么。有什么帮助吗?
谢谢
现在检查$ PATH。
删除的路径将不会显示。
想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
3年前关闭。
我从.profile和.bashrc中删除了我之前在$ PATH变量中添加的路径,但是在后者中仍然存在。我真的不明白为什么。有什么帮助吗?
谢谢
最佳答案
可以使用source
命令来完成。
source ~/.profile
source ~/.bashrc
现在检查$ PATH。
echo $PATH
删除的路径将不会显示。
关于linux - 我从.profile和.bashrc中删除了一个路径,但仍然存在于$ PATH中,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/35958395/