Created
April 9, 2017 20:58
-
-
Save romach/ced2b8ad2777cd32be62467e7e312773 to your computer and use it in GitHub Desktop.
Environment variables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $PATH - programs paths | |
# create | |
NUMBER=1 | |
# delete | |
unset NUMBER | |
echo $NUMBER | |
# show all env vars in session | |
env | |
# pass environment variable to program | |
NUMBER=1 myprogram | |
# export env var for current session | |
export NUMBER=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment