Mar 212010
How to unset an environment variable in bash
Answer:
To unset an environment variable in bash, you can use the unset command.
Example:
# export foo=bar
# echo $foo
bar
# unset foo
# echo $foo
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to unset an environment variable in bash
Answer:
To unset an environment variable in bash, you can use the unset command.
Example:
# export foo=bar
# echo $foo
bar
# unset foo
# echo $foo