Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSean Walsh
817 PointsQuiz question - Which of these commands will not take you to the home directory
I got this question wrong when taking the quiz. I selected the answer "cd $HOME" because this was not included at all in the video that I watched prior to taking the quiz. It's not in the transcript anywhere either.
Is this an old answer from an older video that has since been updated? What is the correct answer for this question?
1 Answer
andren
28,558 PointsHm I'm somewhat surprised that $HOME
is on the quiz. $HOME
is an example of an environment variable which is a topic that won't be covered until a later section of this course.
Anyway the correct answer is cd /home
. home
is the directory that contains the home directories of users on the system. It is not itself a home directory despite its name.
Sean Walsh
817 PointsHey Andren,
Thanks very much for your quick response. I appreciate it. Just got confused why $HOME was included but if it's something that they go into later then I'm sure I'll get it then.
clion
6,614 Pointsclion
6,614 PointsIt's November 2018 & this $HOME response is still here. Since it is not even mentioned in the material, it should not be here as an option, especially if it turns out to true has we have no means of knowing or understanding why it would NOT be the wrong answer. Very frustrating.