Set Envonment Variable in Linux
From Cramsession
✍️ Verified Author: Mflavell • Click to view professional profile & credentials
Displaying a Variable
echo $VARABLENAME
Setting a Varible
export VARIABLE_NAME=value
Make Varable Persistant
Add to bash RC:
vi ~/.bashrc
Source it
source .bashrc
Open a new session to test
References
https://www.freecodecamp.org/news/how-to-set-an-environment-variable-in-linux/