export environment variable bash code example
Example 1: export variable bash
$ export MYVAR=1729
$ echo $MYVAR
1729
Example 2: setting environment variables bash
export VARNAME="my value" # shorter, less portable version
$ export MYVAR=1729
$ echo $MYVAR
1729
export VARNAME="my value" # shorter, less portable version