Simplest cheatsheet ever.
I use this .tmux.conf.
prefix
= Ctrl+a
. Advice: turn CapsLock
key to Ctrl
key via your system settings.
Command | Action |
---|---|
prefix s |
List of sessions. You can select from the list. |
prefix : new -s sname |
Create new session with name sname . |
prefix ) |
Go to the next session. |
prefix $ |
Rename current session. |
prefix : kill-session -t sname |
kill session with name sname . |
Command | Action |
---|---|
prefix w |
List of windows in the current session. You can select from the list. |
prefix n |
Go to the next window. |
prefix c |
Create new window. |
prefix , |
Rename current window. |
prefix : killw |
Kill current window. |
Command | Action |
---|---|
`prefix | ` |
prefix - |
Split current pane vertically. |
prefix h/j/k/l |
Move between panes. Yes, it's Vim way. ;-) |
exit |
Kill current pane. |
Command | Action |
---|---|
prefix Esc |
Go in the Copy mode. |
h/j/k/l/gg/G |
Moving in the Copy mode. |
q |
Exit from the Copy mode. |
v |
Go in the View mode from the Copy mode. |
h/j/k/l |
Selecting text in the View mode. |
y |
Copy selected text in the View mode and exit from it. |
prefix p |
Past text. |
Due xclip
I work with the system clipboard as well. Thus, I can copy text in tmux and paste it to anywhere or vice-versa.