Bash - Keyboard Shortcuts - History


Command history can be gone through via the ↑↓. In the middle of your history? Use Ctrl + c to get back to the start!

Here are some commands to further explore your bash history:

  • Alt + r: Revert command pulled from history to its original form (undo changes to command)
  • Ctrl + r: Recall (search) for the last instance of a command
    • Enter: Run the searched command
    • Ctrl + g: Leave the search without running a command