history — Lists the commands in the command line history.
Lists the commands in the command line history. Each command is numbered in the list. The number of commands kept in the history is set with the shell.hist non-volatile variable.
Commands are accessed in the history by using the up and down arrows. The command may be edited in place and then executed as with any other command line as if typed in.