Command Line Editing
You can list the last n commands from the history buffer:
host% history 6
4 cd unix/class/handouts/larn
5 cd unix/class/handouts/learn
6 history
7 cat /home/ths/class0/basics/history/congrats
8 cat /etc/motd
9 history
To rerun the correct cat command - !8