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 Objects, Classes, and Variables Simple Variables

hi! I used ubuntu, but terminal shows me: 'no such file or directory (load error)' in the Variable work, Why? thanks

when I write in terminal it does not work and i used "Atom"

2 Answers

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

Please elaborate. What commands did you run? Did you create the .rb file? Were you in the proper directory in the terminal?

Rogelio Valdez
Rogelio Valdez
6,244 Points
  1. Make sure you created the file.
  2. That it ends on .rb
  3. And make sure you are on the same directory


  • Use "pwd" to print working directory (current directory)
  • Use "ls" (lowercase L) to have a list of files in the current directory.
  • Use "cd" to change directory example: cd Documents/Ruby

If you are not used to terminal, make sure to read about it, watch some videos cause this should really help you out for future references, hope this helps.