Linux, the command is to show the role of history and the history of executed commands.
- View history of all command execution record
history - View recent 13 history execute the command
history 13 - Execution history, the serial number for the command 123
! 123 - Repeat the command
!! - Check the cat command execution history
history | grep cat - Clear all historical records command
history -c