Linux新增和删除环境变量

vi ~/.bashrc

添加

export 变量名=值

使环境变量生效

source ~/.bashrc

原文地址:https://www.cnblogs.com/heishuichenzhou/p/10697657.html