history is a program for tracking terminal input. Many programs read input from the user a line at a time. The GNU History library is able to keep track of those lines. It associates arbitrary data with each line, and utilize information from previous lines in composing new ones.
Tips and examples
Display the commands history list with line numbers:
Clear the commands history list (only for current bash shell):
Overwrite history file with history of current bash shell
(often combined with history -c to purge history):
Review the command history and use the found command (keyboard shortcut):
ctrl + r
All this commands and hotkey help you to improve your Unix-skills.