tmux notes
tmux cheatsheet
Session Management
Command | Description |
---|
tmux new -s <name> | Create a new named session |
tmux ls | List sessions |
tmux a | Attach to last session |
tmux attach -t <name> | Attach to a session |
tmux kill-session -t <name> | Kill a session |
Window Management
Command | Description |
---|
<prefix> c | Create a new window |
<prefix> , | Rename current window |
<prefix> n | Move to next window |
<prefix> p | Move to previous window |
<prefix> <number> | Switch to window by number |
<prefix> & | Kill current window |
Pane Management
Command | Description |
---|
<prefix> % | Split pane vertically |
<prefix> " | Split pane horizontally |
<prefix> o | Switch to next pane |
<prefix> ; | Toggle between last active panes |
<prefix> x | Kill current pane |
<prefix> space | Toggle between pane layouts |
Misc Commands
Command | Description |
---|
<prefix> d | Detach from session |
<prefix> [ | Enter copy mode |
<prefix> ] | Paste from buffer |
<prefix> : | Enter command mode |
Note: The default prefix key is Ctrl+b