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

Ruby Installing a Ruby Development Environment Installing a Ruby Development Environment Installing Ruby on Mac

kabir k
PLUS
kabir k
Courses Plus Student 18,036 Points

Can'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/?

Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

Mine 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'

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hey 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
kabir k
Courses Plus Student 18,036 Points

Thanks, 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?