在 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屋!
查看全文