Post

Terminal Navigation & Shortcuts: A Quick Reference Guide

Core bash shortcuts, navigation tricks.

Terminal Navigation & Shortcuts: A Quick Reference Guide

nix

Terminal Navigation & Shortcuts

Mastering the CLI starts with moving fast. Here are the essential keyboard shortcuts and history commands captured in today’s session:

  • Ctrl + a: Move cursor to the beginning of the line.
  • Ctrl + e: Move cursor to the end of the line.
  • Ctrl + r: Search through command history (Reverse-i-search).
  • !!: Execute the last command again.
  • sudo !!: Run the previous command with root privileges (perfect for when you forget sudo).
  • Up Arrow Key: Scroll through previous commands.

This post is licensed under CC BY 4.0 by the author.