Bash keyboard shortcuts

Movement keyboard shortcuts

ShortcutAction
[Ctrl]+[a]jump the cursor to the start of the command line
[Ctrl]+[e] jump the cursor to the end of the command line
[Ctrl]+[xx] toggle between start of command line and current cursor position (and back again)
[Ctrl]+[f]move forward one character
[Ctrl]+[b]move backward one character

Editing keyboard shortcuts

ShortcutAction
[Ctrl]+[k]delete from cursor position until the end of the command line
[Ctrl]+[u]delete from cursor position until the start of the command line
[Ctrl]+[w]delete from cursor position until the start of word
[Ctrl]+[d]delete character under the cursor position
[Ctrl]+[h]delete character before the cursor position
[Ctrl]+[y]paste text that has been cut using a deletion shortcuts after the cursor position
[Ctrl]+[t]swap the character under cursor with the previous one

history-related keyboard shortcuts

ShortcutAction
[Ctrl]+[r]enter a history search mode
[Ctrl]+[g]exit a history search mode
[Ctrl]+[p]in history search mode - scroll to the previous command
[Ctrl]+[n]in history search mode - scroll to the next command in history

Other useful Shortcuts

ShortcutAction
[Ctrl]+[l]clear the screen
[Ctrl]+[s]stops a command verbose mode
[Ctrl]+[q]restore a stopped command verbose mode
[Ctrl]+[c]terminate the current command
[Ctrl]+[z]suspend or stop the command