Cheatography
https://cheatography.com
The utimate tmux cheatsheet for tmux version 2.3
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Sessions
New session |
|
New named session |
|
Rename session |
|
List session |
|
Attach to named session |
|
Attach to last session |
|
Kill session |
tmux kill-session -t name
|
List all clients |
|
List clients within session |
tmux list-clients -t name
|
Detach from session |
|
Switch to next session |
|
Switch to previous session |
|
Rename session |
|
Window Management
Create new window |
|
Switch to next window |
|
Switch to previous window |
|
List windows |
|
Switch to window number |
|
Switch to window name |
|
Switch to last window |
|
Change window name |
|
Kill current window |
|
Copy / Paste
Copy |
1. [
2. Ctrl-space to mark start of text 3. Ctrl-w to mark end of text
|
Paste |
|
See Mouse Integration for more natural copy/paste functions.
tmux.conf
Default config file |
|
Enable mouse integration |
|
Change bind-key |
unbind C-b set-option -g prefix C-a bind-key C-a send-prefix
|
Better pane splitting (using | and -) |
bind | split-window -h bind - split-window -v unbind '"' unbind %
|
|
|
Panes
Split pane left/right |
|
Split pane top/bottom |
|
Switch to pane up |
|
Switch to pane below |
|
Switch to pane to the right |
|
Switch to pane to the left |
|
Switch to next pane in set |
|
Switch to last used pane |
|
Break out pane to a new window |
|
Zoom pane to full window |
|
Query pane numbers |
|
Show the time (clock) |
|
Mark the current pane |
|
Unmark the current pane |
|
Kill pane |
|
Resize pane height1 |
or |
Resize pane width1 |
or |
1 Keep the bind-key held down whilst pressing the cursor key
See Mouse Integration for more natural pane selection and resizing functions
Mouse Integration
Select Pane |
|
Re-size pane |
|
Copy text |
1. Hold SHIFT key 2. Select text with mouse (Left button) 3. Right click 4. Click "Copy"
|
Paste text |
1. Hold SHIFT key 2. Right click 3. Click "Paste"
|
See tmux.conf section for details on how to enable mouse integration
Key
|
Bind-key. The bind-key default is Ctrl-b but is configurable. Here, we use this symbol to represent your bind-key |
|
Type on the linux command line |
|
This option toggles - repeating the command will switch between on and off |
|
Press Esc key to exit from this mode |
(text) |
Information (not typed) |
(lima) (OSCAR) |
Information (not typed). Phonetic alphabet to clarify ambiguous characters (note the lowercase and uppercase significance) |
[ ] |
Optional |
|