LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Unsetting environment variables. (https://www.linuxquestions.org/questions/linux-general-1/unsetting-environment-variables-874324/)

gharris 04-11-2011 09:37 AM

Unsetting environment variables.
 
Is it possible to unset an environment variable or at least make the variable have an empty value?

TIA

Graham Harris

Walter.Stroebel 04-12-2011 12:07 AM

$ help unset
unset: unset [-f] [-v] [name ...]
For each NAME, remove the corresponding variable or function. Given
the `-v', unset will only act on variables. Given the `-f' flag,
unset will only act on functions. With neither flag, unset first
tries to unset a variable, and if that fails, then tries to unset a
function. Some variables cannot be unset; also see readonly.


All times are GMT -5. The time now is 04:08 AM.