This page looks best with JavaScript enabled

Shell shortcuts you should remember

 ·  ☕ 1 min read  ·  🤖 Javy de Koning

Tired of pressing your arrow buttons to move around long lines in the shell? You’ll be lightning fast with these shortcuts in your toolkit.

  • Ctrl + A Go to the beginning of the line
  • Ctrl + E Go to the end of the line
  • Alt + F Move cursor forward one word
  • Alt + B Move cursor backward one word

Cut, Delete

  • Ctrl + U Clears the line before the cursor
  • Ctrl + K Clear the line after the cursor
  • Ctrl + W Delete the word before the cursor

Paste

  • Ctrl + Y Paste whatever you cut above

Others

  • Ctrl + L Clears the Screen
  • Ctrl + R Search history
  • Ctrl + C Kill whats running
  • Ctrl + D Exit shell
In iTerm2 set: profile -> keys -> set Esc+ for both option keys to make the Alt combo’s work.

Javy de Koning
WRITTEN BY
Javy de Koning
Geek 🤓, Love sports 🏃‍♂️🏋️‍♂️, Food 🍛, Tech 💻, @Amsterdam ❌❌❌.