linux设置、删除指定环境变量方法

设置变量的三种方法
1 所有用户,永久生效
/etc/profile
2 单一用户生效
~/.bash.profile
3 直接运行export,临时生效
export key=value

使用unset删除指定环境变量
TEST=test
unset Test

猜你喜欢

转载自blog.csdn.net/zhiboqingyun/article/details/111941600