history
Command Line history.
- Display the commands history list with line numbers:
history
- Clear the commands history list (only for current
bashshell):
history -c
- Overwrite history file with history of current
bashshell (often combined withhistory -cto purge history):
history -w