Multiple choice technology operating systems

If you want to find the exact path of your home directory which command do you use?

  1. echo $PWD
  2. pwd

  3. home

  4. echo $HOME
Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The HOME environment variable stores the path to the user's home directory. echo $HOME displays this path. Option A ($PWD) shows the current working directory, option B (pwd) is a command to print current directory (not a variable), and option C (home) is not a valid command.