Display command history.
Synopsis
history [n]
Description
Prints the shell's command history, optionally limited to the last n entries.
Options
-c Clear the history list.
--help Display help and exit.
Examples
$ history
Show the full command history.
$ history 20
Show the last 20 commands.
$ history -c
Clear the history.
See Also
clear