For Beginners

Bash history util for beginners

bash

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:

history

Clear the commands history list (only for current bash shell):

history -c

Overwrite history file with history of current bash shell
(often combined with history -c to purge history):

history -w

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.