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).