To run a command from the history list use a command from this table.
To... Do this...
Move up through the command history list ^P one command at a time. Move down through the command history list ^N one command at a time. Run the previous command. !! Run command number n !n Run most recent command starting with !string characters in string Run most recent command containing !?string characters that match string