options] history [
Print a numbered command history, denoting modified commands with *. Include commands from previous sessions. You may specify how many lines of history to print.
bash maintains a file called .bash_history in the user’s home directory, a record of previous sessions’ commands. Ask bash to append the current session’s commands to .bash_history or to file.
Clear history list: remove all previously entered commands from the list remembered by the shell.
Delete the history entry at the specified offset from the beginning of the history list.
Append to the history list those lines in .bash_history or in file that have not yet been included.
Perform history substitution on the specified arguments and display the result on standard output. The results are not stored in the history list. Each argument must be quoted to disable normal history expansion.
Use .bash_history or file as the history list, instead of using the working history list.
Remove the last command in the history list and then add the specified arguments to the list as a single entry (but don’t execute the entry).
Overwrite .bash_history or file with the working history list.