10 Bash terminal shortcuts for beginners

Bjorn Krols

Bjorn Krols

Published on
11 April 2022

Moving the cursor

  • To the start of the command line: Ctrl + a
  • To the end of the command line: Ctrl + e
  • Forward one character: Ctrl + f
  • Backward one character: Ctrl + b

Deleting

  • From the cursor to the start of the command line: Ctrl + u
  • From the cursor to the end of the command line: Ctrl + k
  • The previous word: Ctrl + w
  • The character under the cursor: Ctrl + d
  • The character before the cursor: Ctrl + h

Pasting

  • Text deleted via a shortcut, after the cursor: Ctrl + y

Subscribe to our newsletter

The latest news, articles, and resources, sent to your inbox weekly.

More like this