history - Commands history library
Display all executed commands:
history
Recall second command in history:
!2
Recall last command in history:
!!
Recall last command starting with "ps":
!ps
Clear history of commands:
history -c
Search in history:
Ctrl + r
Display commands history with timestamp:
export HISTTIMEFORMAT='%F %T ' ; history
Disable duplicate commands in History:
export HISTCONTROL=ignoredups
Disable history:
export HISTSIZE=0