To make a temporary change the value of an environment variable enter the command:
$ VARNAME=value_of_variable
This value will remain until you logout from the system or exit from the shell you are working in.
To make other programs that use the variable aware of the new value enter the command:
$ export VARNAME