Setting Our Own Variables

Learn how to set up our own shell variables

Environment variables

We can set our own environment or shell variables in addition to the ones set up for us. This is helpful when we have to store long strings like API keys, access tokens, or credentials. Many web frameworks and applications use environment variables to store database credentials and other sensitive information to keep it out of the code.

Creating a new variable

Let’s try it out. We create a new shell variable ...