Name

history — Lists the commands in the command line history.

Synopsis

history

Description

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.

Example 9.4. Using the history command

>history
 1 history
 2 meminfo
 3 tasks
 4 hwinfo -a
 5 hwinfo
>