How do I delete an exported environment variable?

environment-variables, linux, unset

Solution

`unset` is the command you're looking for.

unset GNUPLOT_DRIVER_DIR

Problem

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?

Original source

Related problems