Allison is coding...

Ubuntu Terminal Hotkeys Cheat Sheet

Cursor Movement

ShortcutAction
Ctrl + AMove to the beginning of the line
Ctrl + EMove to the end of the line
Ctrl + BMove back one character
Ctrl + FMove forward one character
Alt + BMove back one word
Alt + FMove forward one word

Editing & Deletion

ShortcutAction
Ctrl + UDelete from the cursor to the beginning of the line
Ctrl + KDelete from the cursor to the end of the line
Ctrl + WDelete the word before the cursor
Alt + DDelete the word after the cursor
Ctrl + HDelete the character before the cursor (Backspace)
Ctrl + DDelete the character under the cursor; if the line is empty, send EOF (usually exits the shell)
Ctrl + YPaste (yank) the last deleted text

Command History

ShortcutAction
Ctrl + RSearch command history
Ctrl + GCancel history search
Ctrl + PPrevious command (same as ↑)
Ctrl + NNext command (same as ↓)
!!Repeat the previous command

Process Control

ShortcutAction
Ctrl + CInterrupt the running command
Ctrl + ZSuspend the running command (fg to resume in foreground, bg to resume in background)

Screen

ShortcutAction
Ctrl + LClear the screen (same as clear)
Ctrl + SPause terminal output
Ctrl + QResume terminal output

Clipboard (Ubuntu Terminal)

ShortcutAction
Ctrl + Shift + CCopy selected text
Ctrl + Shift + VPaste from the system clipboard

Most Useful Command-Line Tricks

ShortcutAction
TabAuto-complete commands, paths, and filenames
Tab ×2Show all completion candidates
/ Browse command history