count] history [
Print commands in the history list or manage the history file. With no options or arguments, display the history list with command numbers. With a count argument, print only that number of the most recent commands.
Append new history lines (those executed since the beginning of the session) to the history file.
Clear the history list (remove all entries).
Delete the history item at position position.
Read unread history lines from the history file into the history list.
Perform history substitution on each argument, printing the results to standard output. The results are not saved in the history list. Each argument must be quoted.
Read the history file and replace the history list with its contents.
Store the arguments in the history list as a single entry.
Write the current history list to the history file, overwriting the file.