Using Variables

Learn how to use shell variables.

We'll cover the following

Printing variables

If we want to print one of the environment variables to the screen, we use the printenv command, followed by the variable name:

$ printenv HOME

Use the terminal below to practice these commands.

Get hands-on with 1400+ tech skills courses.