设置变量的三种方法
1 所有用户,永久生效
/etc/profile
2 单一用户生效
~/.bash.profile
3 直接运行export,临时生效
export key=value
使用unset删除指定环境变量
TEST=test
unset Test
设置变量的三种方法
1 所有用户,永久生效
/etc/profile
2 单一用户生效
~/.bash.profile
3 直接运行export,临时生效
export key=value
使用unset删除指定环境变量
TEST=test
unset Test