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 trial

General Discussion

Terminal question

Fill in the blank to complete the command to change to the usr directory within the root directory.

treehouse:~/workspace$ ls / dev etc home opt usr treehouse:~/workspace$ cd

Cant find answer

7 Answers

Steven Parker
Steven Parker
231,269 Points

The key here is "within the root directory", which tells you that you need an absolute path.

An absolute path always starts with a slash ("/"), followed by the directory name(s).

Steven Parker
Steven Parker
231,269 Points

Not quite, that would change to the root directory itself.

Shanna vick-Morris
Shanna vick-Morris
6,683 Points

Would it be " /dev/etc/home/opt/usr"

cd / is the correct Answer

Steven Parker
Steven Parker
231,269 Points

That's not the correct answer for this question. See the comments above.

Fill in the blank to complete the command to change to the usr directory within the root directory.

treehouse:~/workspace$ ls / dev etc home opt usr treehouse:~/workspace$ cd

Answer: /usr

/usr