more on bash env vars
Say you had a application that depended on certain environmental variables to be available before it ran.
To export all the variables to the environement in one shot, you can group them in a script file and then source
that file. For example:
(no chmod
needed for this example since we won’t be executing the script)
in env_vars.sh
:
back at the terminal
you should see a list of those variables, now availabe to subprocesses of the current shell.