Linux Bash Export Variable

May 30, 2020
RUNTIME_API_URL=http://localhost:5000echo $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

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.