Cheatography
https://cheatography.com
Keyboard shortcuts for xterm compatible terminal emulators.
Deleting TextCtrl + 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
ProcessesCtrl + c | Kill process | Ctrl + z | Send current process to background | fg | Recall background process | Ctrl + d | Log out of current terminal |
| | Cursor MovementCtrl + a, Home | Move to beginning of line | Ctrl + b, Left Arrow | Move cursor left | Ctrl + e, End | Move to end of line | Ctrl + f, Right Arrow | Move cursor right |
| | Command HistoryCtrl + p, Up Arrow | Previous command in history | Ctrl + n, Down Arrow | Next command in history | Ctrl + r | Search command history | history | Print the command history |
|
Created By
Metadata
Favourited By
Comments
Ok, this doesn't seem to be an xterm cheatsheet at all, it is more of a bash with emacs line editing mode on (instead of vi, which would be a bunch of different key combinations). While the Processes section is not bash/emacs specific it isn't specific to xterm either, it applies to any shell with job control and works on the console, outside of X too (just like the rest of these).
Perhaps an actual xterm cheatsheet should mention xterm-specific escape codes or mouse actions, not bash / sh keys.
Add a Comment
Related Cheat Sheets