Getting Started
| Start new |
| Start new with session name |
| Attach |
| Attach to named |
| List sessions |
| Kill session |
Sessions
| New session |
| Name session |
| List sessions |
| Previous session |
| Next session |
| Last session |
Windows (Tabs)
| New window |
| List windows |
| Find window |
| Name window |
| Kill window |
| Next window |
| Previous window |
| Previously selected window |
Panes (Splits)
| Vertical split |
| Horizontal split |
| Switch focus between panes |
| Show pane numbers |
| Kill pane |
| Toggle active pane between zoomed and unzoomed |
| Break pane into window (e.g. to select text by mouse to copy) |
| Restore pane from window |
| Toggle between layouts |
| Show pane numbers When the numbers show up type the key to go to that pane |
| Move the current pane left |
| Move the current pane right |
| Arrange panes in one of the five preset layouts: even-horizontal, even-vertical, main-horizontal, main-vertical, or tiled. Meta key defaults to Alt. See the Standard Layouts below |
| Swap Source and Target panes |
| Swap 2 panes Select the first pane then go the second pane to execute swap-panes command at the prompt |
Copy Mode
Pressing setw -g mode-keys vi With this option set, we can use To get out of Copy mode, we just press the For example, we can use | |
| Back to indentation |
| Clear selection |
| Copy selection |
| Cursor up |
| Cursor down |
| Cursor left |
| Cursor right |
| Cursor to bottom line |
| Cursor to middle line |
| Cursor to top line |
| End of line |
| Goto line |
| Half page down |
| Half page up |
| Next page |
| Next word |
| Paste buffer |
| Previous page |
| Previous word |
| Quit mode |
| Scroll down |
| Scroll up |
| Search again |
| Search backward |
| Search forward |
| Start of line |
| Start selection |
Resizing Panes
With most of these the number ( All of these can be bound to keys:
| |
| Resize the current pane down by |
| Resize the current pane up |
| Resize the current pane left |
| Resize the current pane right |
| Resize the current pane to |
| Resize the current pane to |
Miscellaneous
| Detach |
| Big clock |
| List shortcuts |
| Prompt |
Standard Layouts
| +-------------------+ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +-------------------+ |
| +-------------------+ | | +-------------------+ | | +-------------------+ | | +-------------------+ | | +-------------------+ |
| +-------------------+ | | | | | | | | +------+------+-----+ | | | | | | | | +------+------+-----+ |
| +-------------+-----+ | | | | | | | +-----+ | | | | | | | +-----+ | | | | | | +-------------+-----+ |
| +---------+---------+ | | | | | | | | | +---------+---------+ | | | | | | | | | +---------+---------+ |