Skip to content

Instantly share code, notes, and snippets.

@rhexgomez
Last active November 26, 2015 12:20
Show Gist options
  • Save rhexgomez/81ebeaf0e207b3dc4b4a to your computer and use it in GitHub Desktop.
Save rhexgomez/81ebeaf0e207b3dc4b4a to your computer and use it in GitHub Desktop.
Setting up multiple Environment Variable in Linux

Open your Bashrc file

sudo gedit .bashrc

To demonstrate an example mutliple Environment Variable

FIRST_VARIABLE=<full path>
SECOND_VARIABLE=<full path>
PATH=$PATH:$FIRST_VARIABLE/$SECOND_VARIABLE
export PATH

Lastly save the file and confirm by doing an Echo.

echo $FIRST_VARIABLE
echo $SECOND_VARIABLE

If you see the fullpath it means you are doing it right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment