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

Development Tools Introduction to the Terminal Directories and Files Paths

What does the question want?

The full question was this:

Fill in the blank to complete a command to change to the macpan directory within the games directory.

Notice that we are currently in the workspace directory. We want to change to the macpan directory in a single command, so you'll need to use a relative path that includes the games directory...

treehouse:~/workspace$ pwd
/home/treehouse/workspace/
treehouse:~/workspace$ ls
documents  games  images
treehouse:~/workspace$ ls games
dugdig  gagala  macpan
treehouse:~/workspace$ cd __

I rewatched the two videos beforehand and none of the methods I did work. Was there something I had missed?

5 Answers

Steven Parker
Steven Parker
229,786 Points

The question wants a relative path to the new directory.

This is actually pretty similar to the other "fill in the blank" question about showing the contents of a file. Both answers are relative paths, this one is for a directory and the other was for a file.

Steven Parker
Steven Parker
229,786 Points

Wow, why all the downvoting? :see_no_evil:

Would someone(s) who downvoted mind explaining what you felt was wrong with the answer and how it could be improved? Thanks!

Molly Zalman
seal-mask
.a{fill-rule:evenodd;}techdegree
Molly Zalman
Full Stack JavaScript Techdegree Student 12,522 Points

Steven, I feel like maybe people just want the direct answer, not that your answer isn't helpful because it got me where I needed to go!

Steven Parker
Steven Parker
229,786 Points

Usually providing a hint instead of a solution might not be selected as "best" but doesn't warrant a downvote, and certainly not so many. But you might be correct.

I almost never provide direct solutions because I think guiding someone to the answer creates a better learning experience than just handing it to them.

mohammed osman salah
mohammed osman salah
9,587 Points

not working for me cd games/ macpan 'games/ macpan' is incorrect

Nicholas Prober
Nicholas Prober
4,925 Points

Where do you get /macpan from? This answer is nothing but confusing since the program has talked nothing about /macpan.

Patricia Jackson
seal-mask
.a{fill-rule:evenodd;}techdegree
Patricia Jackson
Front End Web Development Techdegree Student 9,165 Points

Mohammed osman salah I passed with this path, your path is incorrect. You have two / whereas you only need one, and you have space inside your path. It should look like this cd games/macpan. I hope this works for you.