| Command | Description |
|---|---|
| tmux | Start a new session |
| tmux new -s myname | Start a new named session |
| tmux attach | Re-attach a detached session |
| tmux attach -d | Re-attach a detached session (and detach it from elsewhere) |
| tmux attach -t myname | Attach to a named session |
| tmux ls | Display sessions |
| Command | Description |
|---|---|
| Ctrl-B c | Create new window |
| Ctrl-B d | Detach from session |
| Ctrl-B , | Rename a window |
| Ctrl-B w | List windows |
| Command | Description |
|---|---|
| Ctrl-B “ | Split pane horizontally |
| Ctrl-B % | Split pane vertically |
| Ctrl-B o | Next pane |
| Ctrl-B ; | Previous pane |
| Ctrl-B x | Kill current pane |
| Ctrl-B ! | Kill all panes but the current one |
| Ctrl-B or Ctrl-O | Swap panes |
| Ctrl-B t | Display clock |
| Ctrl-B q | Transpose two letters (delete and paste) |
| Command | Description |
|---|---|
| Ctrl-B [ | Enter copy mode |
| Ctrl-B G | Bottom of history |
| Ctrl-B g | Top of histroy |
| Ctrl-B Enter | Copy selection |
| Ctrl-B p | Paste selection |
| Ctrl-B k | Cursor Up |
| Ctrl-B j | Cursor Down |
| Ctrl-B h | Cursor Left |
| Ctrl-B l | Cursor Right |