If we run export -p, then we can find all global variable in the current system. But I think the variable list must be in a certain config file. How to find out it in my CentOS 7 or Ubuntu 16.04?
Asked
Active
Viewed 281 times
0
yode
- 1,037
- 4
- 11
- 19
-
@muru It cannot response my question. Such as I run `export test_variable="/usr/sbin"`. I even cannot find any file by `grep -R "test_variable" /etc` – yode Mar 05 '18 at 07:11
-
Why would that variable be in any file? You created it. – muru Mar 05 '18 at 07:11
-
https://unix.stackexchange.com/questions/196586/environment-variables-where-are-they-saved-in – muru Mar 05 '18 at 07:12