Command history is a feature in many operating system shells, computer algebra programs, and other software that allows the user to recall, edit and rerun previous commands.
[1] It quickly became popular because it made the C shell fast and easy to use.
History has since become a standard feature in other shells, including ksh, Bash and Microsoft's cmd.exe.
For example: The usual implementation today is to combine history with command-line editing.
The cursor keys are used to navigate up and down through the history list and left or right to anyplace on the line, where the user can simply type a desired change.