tmuxCreates a new tmux server if needed and opens a client attached to a new session.
Core tmux commands and interactive shortcuts for managing sessions, windows, panes, splits, and layouts.
Create, attach, list, rename, and destroy sessions.
tmuxCreates a new tmux server if needed and opens a client attached to a new session.
tmux new-session -s workUse named sessions so you can reattach later without guessing targets.
Name the session and initial window together.
tmux new-session -s work -n editorUseful for repeatable project bootstrapping.
tmux attachAlso available as `tmux a`.
tmux attach-session -t workTarget by session name or id.
Take over a session from other attached clients.
tmux attach-session -d -t workHandy when reconnecting from a new machine.
tmux list-sessionsAlso available as `tmux ls`.
tmux kill-session -t workCloses all windows and panes in the target session.
Split, navigate, resize, move, and synchronize panes.
tmux new-window -n logsCreates a new shell in another window.
tmux split-window -hCreates a new pane beside the current one.
tmux split-window -vCreates a new pane below the current one.
tmux select-layout tiledUseful after many splits.
tmux resize-pane -L 10Use `-L`, `-R`, `-U`, or `-D` for direction.
tmux swap-pane -s :.1 -t :.2Helpful when reordering pane positions.
tmux break-paneUseful when a pane deserves its own full window.
tmux set-window-option synchronize-panes onGreat for running the same command across multiple hosts, but turn it off afterward.
Fast interactive actions using the default prefix.
Prefix dWith the default key table, the prefix is `Ctrl-b`.
Prefix cFastest way to open another shell.
Prefix "Creates a pane below the current one.
Prefix %Creates a pane beside the current one.
Prefix wUseful for jumping across sessions, windows, and panes.
Prefix [Often combined with vi-style keys in custom configs.