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 trialkabir k
Courses Plus Student 18,036 PointsCan't change directory to treehouse/
I have been following the Installing a Ruby Development Environment
video but at the end of the video when it says to type cd treehouse/
, I got the following response in the terminal
-bash: cd: treehouse/: No such file or directory
How do I do it so that I can change directory to treehouse/?
kabir k
Courses Plus Student 18,036 PointsOk...thanks, Jason.
1 Answer
Jason Anders
Treehouse Moderator 145,860 PointsHey kabir,
One, you don't actually need to put the ending slash in the command, but that's not the problem here.
If I remember this course correctly, you have to make the directory first, before you can switch to it. (Something I don't think they mention)
So, from your home directory in the cmd line, type mkdir treehouse
and hit enter.
You can check that it was created with ls
After that, you can switch to it with the command you have.
Hope this helps. Keep Coding! :)
kabir k
Courses Plus Student 18,036 PointsThanks, Jason! I later figured it out but thanks anyway. I also noticed that all the instructor's treehouse after changing to it, the text is in color green but mine isn't. What's the reason for that?
Jason Anders
Treehouse Moderator 145,860 PointsJason Anders
Treehouse Moderator 145,860 PointsMine wasn't green either. That's just something they configured to make the prompt color green. It's been a while since I've worked in the console, so I can't remember right now how to do it, but it's nothing to worry about for your lessons. :)
If you really want to, just google 'customizing command prompt'