# Saving an IRB Session

**URL:** <https://www.ruby-forum.com/t/saving-an-irb-session/73959>\
**Category:** Ruby\
**Created:** [October 28, 2006, 2:27pm UTC](https://www.ruby-forum.com/t/saving-an-irb-session/73959 "2006-10-28T14:27:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcarlson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@mcarlson](https://www.ruby-forum.com/u/mcarlson)\
**Post date:** [October 28, 2006, 2:27pm UTC](https://www.ruby-forum.com/t/saving-an-irb-session/73959/1 "2006-10-28T14:27:15Z")

</div>

Hi,

I’m learning Ruby from the pickaxe book and I’m using the IRB to try  
out examples. I’d like to know if it is possible to save to disk the  
IRB session so that when I come back I can load up a session to the  
state it was in before. Is this possible?

Thanks,  
Matt

---

<div class="post-metadata">

**Author:** ![mcarlson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@mcarlson](https://www.ruby-forum.com/u/mcarlson)\
**Post date:** [October 28, 2006, 3:11pm UTC](https://www.ruby-forum.com/t/saving-an-irb-session/73959/2 "2006-10-28T15:11:26Z")

</div>

Matthew C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,
> 
> I’m learning Ruby from the pickaxe book and I’m using the IRB to try  
> out examples. I’d like to know if it is possible to save to disk the  
> IRB session so that when I come back I can load up a session to the  
> state it was in before. Is this possible?

I do not think so. You certainly can store objects to disk (using  
Marshal  
or Yaml) but then you would still be missing a lot info (local  
variables,  
files to require etc.)

If you are on a Unix a workaround might be to use screen.

Kind regards

```
robert

```
