Related questions
How do I delete an exported environment variable?
Before installing gnuplot, I set the environment variable GNUPLOT_DRIVER_DIR = /home/gnuplot/build/src. During the installation, something went wrong.
I want to remove the GNUPLOT_DRIVER_DIR environment variable. How can I achieve it?
How to reset all environment variables?
I want to do :
env | egrep -o '^\w+=' | unset
The problem is that :
env | egrep -o '^\w+='
prints things like (notice the equal sign) :
XDG_VTNR=
LC_PAPER=
SSH_AGENT_PID=
KDE_MULTIHEAD=
LC_ADDRESS=
XDG_…