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 Ruby Foundations Loops Creating Loops

how come when i type cd source in terminal it wont work? Gives me the message no such file or directory

how come when i type cd source in terminal it wont work? Gives me the message no such file or directory

3 Answers

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

Do you have a directory named 'source' in the folder that you are currently in?

no, how do i do that? type mkdir source?

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

Well...yes. cd means 'change directory', i.e. "go to directory called: x". If x is not found (you don't have the directory named 'source'), you can't expect this to work :)

THank you, I am very very new to all of this, one last question if you dont mind....it is asking me on the ruby foundations loops video to type the command subl -n loops-1.rb, but when i do this -bash says command not found? Any ideas on this? Thank You

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

subl is a custom command available when you install Sublime Text and configure your shortcuts. It basically opens this file loops-1.rb in Sublime Text. You don't really need to do all that, you jut want any text editor and ruby interpreter. This is enough: http://teamtreehouse.com/workspaces

I am using the treehouse workspace link you gave me and have workspaces open in ruby and im getting the same error I was in terminal....

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

Because you don't have source directory and Workspaces does not have Sublime Text installed...it's just an editor and Workspaces has an editor built in.

If you still don't understand, I would highly recommend this course - http://teamtreehouse.com/library/console-foundations - And keep up the good work!