Tmux Commands
Tmux terminal multiplexer commands and key bindings.
Session Management
tmuxStart new session
tmux new -s session-nameStart named session
tmux lsList all sessions
tmux attach -t session-nameAttach to named session
tmux attachAttach to last session
tmux kill-session -t session-nameKill named session
tmux kill-serverKill all sessions
tmux rename-session -t old newRename session
Window Management
Ctrl+b cCreate new window
Ctrl+b ,Rename current window
Ctrl+b &Close current window
Ctrl+b nNext window
Ctrl+b pPrevious window
Ctrl+b 0-9Switch to window number
Ctrl+b wList windows
Ctrl+b fFind window by name
Ctrl+b .Move window to different number
Pane Management
Ctrl+b %Split pane vertically
Ctrl+b "Split pane horizontally
Ctrl+b xKill current pane
Ctrl+b oSwitch to next pane
Ctrl+b qShow pane numbers
Ctrl+b {Move pane left
Ctrl+b }Move pane right
Ctrl+b zToggle pane zoom
Ctrl+b SpaceToggle pane layouts
Ctrl+b !Convert pane to window
Pane Navigation
Ctrl+b arrow-keyMove between panes
Ctrl+b q 0-9Jump to pane by number
Ctrl+b Ctrl+arrowResize pane
Ctrl+b Alt+arrowResize pane by 5 cells
Ctrl+b ;Toggle last active pane
Copy Mode
Ctrl+b [Enter copy mode
SpaceStart selection (in copy mode)
EnterCopy selection and exit
Ctrl+b ]Paste copied text
qExit copy mode
Ctrl+b =List all paste buffers
Ctrl+b -Delete most recent paste buffer
Session Control
Ctrl+b dDetach from session
Ctrl+b DChoose client to detach
Ctrl+b $Rename current session
Ctrl+b sList sessions
Ctrl+b (Switch to previous session
Ctrl+b )Switch to next session
Help & Info
Ctrl+b ?List all key bindings
Ctrl+b tShow current time
Ctrl+b iDisplay pane information
tmux infoShow server information
Advanced Commands
Ctrl+b :Enter command mode
tmux source-file ~/.tmux.confReload configuration
Ctrl+b rReload config (if bound)
tmux set -g mouse onEnable mouse support
tmux set -g status offHide status bar
tmux set -g prefix C-aChange prefix to Ctrl+a
tmux set -g history-limit 10000Set scrollback buffer size
Command Line
tmux send-keys -t session:window "cmd" EnterSend command to window
tmux capture-pane -pt session:windowCapture pane contents
tmux show-options -gShow global options
tmux list-keysList all key bindings
tmux list-commandsList all tmux commands