If you like what you see here, please post this website on other sites. Message me directly on Twitter with any comments.
How to Set Environment Variables From A Linux Script
If you utilize the cloud, odds are that there has been a time where you spun up a machine and needed to set the environment variables from a linux script.
The process to do this is:
1) Create a file that contains environment variables that you want to export.
environ.sh
export APIKEY="Sample API key"
2) Change the permissions of the environment file:
chmod +x environ.sh
3) Execute the script with a dot space prefix.
Use the dot space command as follows:
. environ.sh