Environment variables
Finally, let’s explore environment variables. For example, to define a variable abc with contents 123, and def with hello:
Make sure there are no spaces surrounding the equal sign, otherwise the terminal treats the variable name as a command (try it!).
To display the content of the variable abc, use the $ delimiter:
To delete a variable, use unset:
Use env to view all available variables: