Sessions
A single collection of pseudo-terminals under the management of Tmux. Once you kill the last session, Tmux exits. Each session is persistent and will survive accidental disconnection (such as SSH connection timeout) or intentional detaching by the user.In the example above, the session comprises panes 0:bash, 1:bash, and 2:bash. The current pane is 2:bash, marked by an asterisk *. Here, the cursor is active, and you can type into the pane. The other pane in the same window is 1:bash, marked by a hyphen -.
New Sessions
COMMAND | DESCRIPTION |
| Create new session from CLI |
Ctrl+b : | Create new session from inside Tmux |
| Create new session named |
Ctrl+b : | Create new session |
| Set a preferred directory for a new tmux session |
List Sessions
COMMAND | DESCRIPTION |
| Show all sessions |
Ctrl+b | Show all sessions from inside Tmux |
Attach Sessions
COMMAND | DESCRIPTION |
| Attach to the most recently created session |
| Attach to session |
Terminate Sessions
COMMAND | DESCRIPTION |
| Kill last active session |
| Kill session named |
| Kill all sessions except the current one |
| Kill all sessions except |
Operations
Key Binding | Description |
---|---|
| Rename Session |
| Detach from Session |
| Session and Window Preview |
| Move to Previous Session |
| Move to Next Session |
Last updated