Linux Mint-永久添加环境变量 [英] Linux Mint - adding environment variables permanently
本文介绍了Linux Mint-永久添加环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图修改〜/.profile文件以在PATH变量中添加一行.我添加了这一行:
I was trying to modify the ~/.profile file to add a line to the PATH variable. I added this line:
PATH=$PATH:/home/paul/avatar-gf-1.0-ea/glassfish4/bin/
最后是
.我重新启动了终端,但是它仍然无法识别该目录中的命令.有人知道我在做什么错吗?
at the end. I restarted the terminal, but it still did not identify commands in that directory. Does anyone know what I am doing wrong?
推荐答案
在主文件夹的〜/.pam_environment中尝试此操作.如果不存在,则创建它:
Try this in the ~/.pam_environment in your home folder. If it does not exist then create it:
PATH DEFAULT=${PATH}:/home/paul/avatar-gf-1.0-ea/glassfish4/bin/
您需要登录和退出.
这篇关于Linux Mint-永久添加环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文