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!

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 Basics (Retired) Ruby Numbers Different Kinds of Numbers

Ralph Otowo
Ralph Otowo
Python Development Techdegree Student 2,311 Points

Log irb output to file?

I'm taking the Ruby Basics courses and getting familiar with irb. Instead of using workspaces, I compiled and installed ruby locally on my Linux computer. I would like to log the Input/Output of my irb sessions to a file so I can review them later and master what I've learnt. Is this possible?

1 Answer

Charlie Jaime
Charlie Jaime
17,351 Points

Well I haven't done this myself but I've read it can be done. when your ready to start recording your log use: script screen.log when your done recording use: exit your screen logs will be saved in your home folder.

if you like me answer vote me or mark me up for the best answer thank you and great coding!