Shell shortcuts - cheatsheet

Shell shortcuts - cheatsheet

Here’s a cheatsheet of useful shell shortcuts, that might be interesting for you.

  • Ctrl+A Go to the beginning of a line
  • Ctrl+E Go to the end of a line
  • Ctrl+R Quick search through command history
  • Ctrl+L Clear the screen. This is similar to running the clear command
  • Ctrl+K Delete everything from cursor to the end
  • Ctrl+U Delete everything from cursor to the beginning
  • Ctrl+C Stop a running foreground process by sending SIGINT
  • Ctrl+Z Send a running foreground process to background (use fg command to restore it)
  • Ctrl+S Suppress all output temporarily (e.g. if there is too much output by a running program)
  • Ctrl+Q Resume suppressed output
  • Ctrl+W Delete word left
  • Ctrl+B Go one char back
  • Ctrl+F Go one char forward
  • Esc+B Go one word back
  • Esc+F Go one word forward

There are a lot more, but these are only the ones that I use regularly

Andreas Fuhrich avatar
About Andreas Fuhrich
I’m a professional software developer and tech enthusiast from Germany. On this website I share my personal notes and side project details. If you like it, you could support me on github - if not, feel free to file an issue :-)