Learn
Environment
HOME Environment Variable

What happens when you type this command?

$ echo $HOME

The HOME variable is an environment variable that displays the path of the home directory ~. You can specify and change the HOME variable if needed, but in most cases this is not necessary.

Here, by typing echo $HOME, the terminal displays the path /home/ccuser as output.

Instructions

1.

Let’s see the value of $HOME currently.

In the command line, type:

echo $HOME

This returns the value of the HOME variable.

Folder Icon

Sign up to start coding

Already have an account?