Env Output
Predict Output Beginner
Question
What does this command produce?
Code
echo $HOME
Hint
$HOME expands to the home directory path.
Explanation
The echo $HOME command prints the value of the HOME environment variable. On Linux, this is typically /home/username. The shell expands $HOME before passing to echo.
Related Resources
Related Lessons
- Env Variables
Learn env vars.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.