在Ubuntu上永久更改PATH [英] change PATH permanently on Ubuntu
本文介绍了在Ubuntu上永久更改PATH的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在PATH中添加值:/home/me/play/"
安装Play!框架.
所以我运行了以下命令:
I'd like to add to PATH the value ":/home/me/play/"
for the installation of Play! framework.
so I ran this command:
PATH=$PATH:/home/me/play
它起作用了.但是在我下次检查时,该值又变回了原来的值.
it worked. but in the next time I checked, the value changed back to the old one.
所以我想我没有保存"新值,对吗?
so I guess I didn't "saved" the new value, right?
您如何做到的?
推荐答案
添加
export PATH=$PATH:/home/me/play
到您的~/.profile
并执行
source ~/.profile
以便立即反映对您当前终端实例的更改.
in order to immediately reflect changes to your current terminal instance.
这篇关于在Ubuntu上永久更改PATH的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文