Bash shortcuts


Cursor moving

  1. End of line: Ctrl + e.
  2. Beginning of line: Ctrl + a.
  3. Move forward one word: Alt + f.
  4. Move back one word: Alt + b.

Deleting

  1. Everything before the cursor: Ctrl + u.
  2. Everything after the cursor: Ctrl + k.
  3. Delete word before the cursor: Ctrl + w.
  4. Delete word after the cursor: Alt + d.
Posted on Tue Sep 04 13:57:01 EDT 2018 by Subhash Chandran
bash mac