How to view the entire Rails console history?

Solution 1:

Look at ~/.irb-history, you will find the history there.

Solution 2:

The best equivalent to the history command would be

puts Readline::HISTORY.to_a

inside the IRB session. This has the advantage that no filesystem logging to any of the$HOME/.*_history files needs to be configured (as is the case in AWS elastic beanstalk instances).