how to unset home variables in linux code example Example 1: remove environment variable linux $ unset <var-name> Example 2: bash delete env variable unset GNUPLOT_DRIVER_DIR