This is a draft cheat sheet. It is a work in progress and is not finished yet.
CLI Comands
tmux (new-session) |
Start a new session |
tmux new -s mysession |
Start a new session with the name mysession |
tmux kill-session -t mysession |
kill/delete session mysession |
tmux kill-session -a |
kill/delete all sessions but the current |
tmux kill-session -a -t mysession |
kill/delete all sessions but mysession |
tmux ls |
Show all sessions |
tmux a(ttach-session) |
Attach to last session |
tmux a(ttach-session) -t mysession |
Attach to a session with the name mysession |
: In tmux Session Commands
:new |
Start a new session |
:new -s mysession |
Start a new session with the name mysession |
:kill-session |
kill/delete the current session |
:attach -d |
Detach others on the session (Maximize window by detach other clients) |
Others
Ctrl + A + ? |
Show Key Bindings |
Ctrl + A + : |
Enter Command Mode |
|
|
Key Mappings Windows
Ctrl + A |
Escape Sequence |
Ctrl + A + $ |
Rename session |
Ctrl + A + d |
Detach from session |
Ctrl + A + w |
Session and Window Preview |
Ctrl + A + ( |
Move to previous session |
Ctrl + A + ) |
Move to next session |
Ctrl + A + c |
Create window |
Ctrl + A + , |
Rename current window |
Ctrl + A + & |
Close current window |
Ctrl + A + w |
List windows |
Ctrl + A + p |
Previous window |
Ctrl + A + n |
Next window |
Ctrl + A + 0...9 |
Switch/select window by number |
Key Mappings Panes
Ctrl + A + ; |
Toggle last active pane |
Ctrl + A + % |
Split the current pane with a vertical line to create a horizontal layout |
Ctrl + A + " |
Split the current with a horizontal line to create a vertical layout |
Ctrl + A + { |
Move the current pane left |
Ctrl + A + } |
Move the current pane right |
Ctrl + A + (Up/Down/Left/Right) |
Switch Pane to direction |
Ctrl + A + Space |
Toggle between pane layouts |
Ctrl + A + o |
Switch to next pane |
Ctrl + A + q |
Show pane numbers |
Ctrl + A + q 0...9 |
Switch/select pane by number |
Ctrl + A + z |
Pane Zoom In/Out |
Ctrl + A + ! |
Pane to Window |
Ctrl + A + Alt (Up/Down/Left/Right) |
Resize current pane (while holding alt) |
Ctrl + A + x |
Close Current Pane |
|