tmux Cheat Sheet
Cheat sheet for the open-source terminal multiplexer tmux. Getting started with tmux. Learn to master tmux with simple commands and shortcuts.
The leader, <C-b>
, stands for the key combination Ctrl
+b
.
Session Management
Command | Explanation |
---|
<C-b>s | list sessions |
<C-b>$ | name sessions |
Window Management
<C-b>c | create new window |
<C-b>n | go to next window |
<C-b>p | go to previous window |
<C-b>[i] | go to [i] window |
<C-b>' | select the window index |
<C-b>w | interactive index to choose window (0-9a-z) |
<C-b>f | find window by name |
<C-b>l | go to last used window |
<C-b>. | interactively move window |
<C-b>, | rename current window |
<C-b>& | kill current window |
Pane Management
Command | Explanation |
---|
<C-b>" | split vertically |
<C-b>% | split horizontally |
Moving between panes
Command | Explanation |
---|
<C-b>[↑|↓|→|←] | move through panes |
<C-b>o | go to next pane (cycle) |
<C-b>; | go to last used pane |
Resizing panes
Command | Explanation |
---|
<C-b> Esc+[↑|↓|→|←] | Change size of active pane |
<C-b> Alt+[↑|↓|→|←] | Change size of active pane |
References
- #