Linux Bash Export Variable

May 30, 2020
RUNTIME_API_URL=http://localhost:5000
echo $RUNTIME_API_URL

NOTE: This environment is available for the current bash process only.

Use export RUNTIME_API_URL=http://localhost:5000 if you want the variable to be available to any child process started from this bash process.

To set environment variable automatically for each bash, edit ~/.bashrc

Add the following at the last line.

export RUNTIME_API_URL=http://localhost:5000
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.