Skip to main content
Code and think

Linux environment variables

If you want to set an environment variable, you can use the export function.

export VARIABLE_NAME=VALUE

To remove it, you can use the unset function.

unset VARIABLE_NAME

To list all environment variables, use set command without parameters.

set