Say I have some environment variable PROJECT_HOME. I want to find out which file it is set in. How do I do this?
Select Start, select Control Panel. double click System, and select the Advanced tab. Click Environment Variables. In the section System Variables, find the PATH environment variable and select it.
In the command window that opens, enter echo %VARIABLE%. Replace VARIABLE with the name of the environment variable you set earlier. For example, to check if MARI_CACHE is set, enter echo %MARI_CACHE%. If the variable is set, its value is displayed in the command window.
grep -r PROJECT_HOME /etc $HOME
will probably find it.
find $HOME -type f -exec grep -Hn 'PROJECT_HOME' {} \;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With