add a variable to a bash environment code example Example: setting environment variables bash export VARNAME="my value" # shorter, less portable version