Cursor movementBeginning of the line | Ctrl-a | 0 | End of the line | Ctrl-e | $ | Previous word | Alt-b | b | Next word | Alt-f | w | Previous character | Ctrl-b | h | Next character | Ctrl-f | l |
DeletingCharacter under the cursor | Ctrl-d | x | Character before the cursor | Ctrl-h | X | From the cursor to the beginning of line | Ctrl-u | d0 | From the cursor to the end of line | Ctrl-k | D | Line | Ctrl-e Ctrl-u | dd | From the cursor to the beginning of the word | Ctrl-w | db | From the cursor to the end of the word | Alt-d | dw | Word around the cursor | Alt-b Alt-d | bdw | Paste text that was cut using deletion shorcut | Ctrl-y |
Command editingClear screen | Ctrl-l | Ctrl-l | Terminate command | Ctrl-c | Ctrl-c | Send EOT char to current process | Ctrl-d | Ctrl-d | Suspend/stop command | Ctrl-z | Ctrl-z | Search command history | Ctrl-r | Ctrl-r | Autocompletion | tab | tab | Undo | Ctrl-_ | u |
| | Tmux command lineCreate session foo and attach | tmux new -s foo | List sessions | tmux ls | Attach to session foo | tmux attach -t foo | Kill session foo | tmux kill-session -t foo | Reload tmux.conf | tmux source-file ~/.tmux.conf | Swap window 2 with 3 | prefix : swap-window -s 2 -t 3 | Move window to unused one (i.e to 4) | prefix : move-window -t 4 |
Tmux key bindingsPrefix | Ctrl-b | Create new window | prefix c | Rename window || session | prefix , || prefix $ | Split pane horizontal | prefix - | Split pane vertical | prefix \ | Select left/right pane | Shift-left/rightArrow | Select bottom/up pane | Shift-down/upArrow | Select next window | Ctrl-] | Select previous window | Ctrl-[ | Kill current pane | prefix x || Ctrl-d | Kill current window | prefix Q | Swap this pane with previous/next one | prefix { / prefix } | Toggle panes layouts | prefix spacebar | Cycle through sessions | prefix ( or ) | Enter copy mode | prefix [ or prefix PgUp | Start selection | Ctrl-spacebar | Copy selection | Ctrl-w |
|
Cheatographer
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets