history

history lists the last executed commands.

Each command is references by a number in the history of commands.

History usage:

!! repeat the last command
!n repeat the command numbered n in the history
!-n repeat the n most recent command
!string repeat the last command starting with the strinct string
!?string? repeat the last command that contains the string string