Cheatography
https://cheatography.com
Keyboard shortcuts for xterm compatible terminal emulators.
Deleting Text
Ctrl + k |
Deletes all characters ahead of cursor |
Ctrl + w, Alt + Backspace |
Deletes word behind cursor * |
Ctrl + u |
Deletes all characters behind cursor |
Ctrl + l |
Clears the screen |
* A word is a set of characters seperated by spaces
Processes
Ctrl + c |
Kill process |
Ctrl + d |
Log out of current terminal |
Ctrl + z |
Send current process to background |
fg |
Recall background process |
|
|
Cursor Movement
Ctrl + a, Home |
Move to beginning of line |
Ctrl + e, End |
Move to end of line |
Ctrl + b, ← |
Move cursor left |
Ctrl + f, → |
Move cursor right |
Command History
Ctrl + p ↑ |
Previous command in history |
Ctrl + n ↓ |
Next command in history |
Ctrl + r |
Search command history |
history |
Print the command history |
!! |
Redo Previous command |
sudo !!
redo prev with sudo
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets