This topic created in 4235 days ago, the information mentioned may be changed or developed.
centos下的一个用户,有两个环境变量设置文件,在su到该用户并执行不同命令脚本时需要能应用其中某一个环境变量设置。
这样的需求能不能实现?
2 replies • 2015-01-08 15:57:02 +08:00
 |
|
1
rrfeng Jan 8, 2015
一个用户两个环境?
那只能手动加载了。或者脚本里覆盖当前。
|
 |
|
2
Lax Jan 8, 2015
执行命令前用 source 命令来加载
|