Bash History Tricks

  • history to show your bash history
  • to rerun a old command: !<line number>
    • !32 will execute the command on line 32 in the history again
    • !! will execute the last command
  • Ctrl + R: to search through the history

Relevant Note(s): Linux Basics