So far, we've been creating shell variables. These variables can be accessed only within the bash shell.
Another type of variable is an environment variable. These can be accessed by any program that is run from the shell.
We can create environment variables using theexport
command. export FOOD="Chicken and waffles"
will create an environment variable called FOOD
.
Instructions
- Type
export FOOD="Chicken and waffles"
to create an environment variable calledFOOD
.
export FOOD="Chicken and waffles"