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 trialNikki Kauffmann
8,032 PointsWhat 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
231,248 PointsThe 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.
Patricia Jackson
Front End Web Development Techdegree Student 9,165 PointsThe relative path is cd games/macpan. This will get you to the directory in a single command.
mohammed osman salah
9,587 Pointsnot working for me cd games/ macpan 'games/ macpan' is incorrect
Nicholas Prober
4,925 PointsWhere do you get /macpan from? This answer is nothing but confusing since the program has talked nothing about /macpan.
Patricia Jackson
Front End Web Development Techdegree Student 9,165 PointsMohammed 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.
mohammed osman salah
9,587 Pointsthnks it works now
Molly Zalman
Full Stack JavaScript Techdegree Student 12,522 PointsI've read the comments and can't seem to get this question. I've tried cd games/macpan but nothing is working?
Steven Parker
231,248 PointsNote that the "cd" is already on the line before the blank, what you put into the blank should be just the path.
Molly Zalman
Full Stack JavaScript Techdegree Student 12,522 PointsThank you, Steven! Just got it.
Steven Parker
231,248 PointsSteven Parker
231,248 PointsWow, why all the downvoting?
Would someone(s) who downvoted mind explaining what you felt was wrong with the answer and how it could be improved? Thanks!
Molly Zalman
Full Stack JavaScript Techdegree Student 12,522 PointsMolly Zalman
Full Stack JavaScript Techdegree Student 12,522 PointsSteven, 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
231,248 PointsSteven Parker
231,248 PointsUsually 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.