tmux commands
17 commands, each with a one-line explanation. Click a command to copy it, or its title for details.
Commands 17 shown
-
tmux new-session -s workStart a new tmux session named 'work'
-
tmux attach-session -t workAttach to an existing named session
-
tmux lsShow all active tmux sessions
-
<prefix> dDetach from current session leaving it running in background
-
tmux kill-session -t workTerminate a named session and all its windows
-
<prefix> %Split current pane into left and right
-
<prefix> "Split current pane into top and bottom
-
<prefix> <arrow keys>Move focus to adjacent pane
-
tmux resize-pane -D 5Resize current pane down 5 rows (-U up, -L left, -R right)
-
<prefix> cCreate a new window in current session
-
<prefix> ,Rename the current window
-
<prefix> 0-9Jump to window by its index number
-
<prefix> [Enter scroll/copy mode; use arrows or vi keys to navigate
-
tmux setw synchronize-panes onSend keystrokes to all panes simultaneously (multi-server ops)
-
tmux list-panes -s -F '#{session_name}:#{window_index}.#{pane_index}' | xargs -I{} tmux send-keys -t {} 'uptime' EnterRun a command in every pane of the current session
-
tmux new-session -d -s work && tmux send-keys -t work 'tail -f /var/log/app.log' EnterSpawn background session and inject a command; survives SSH disconnect
-
tmux capture-pane -p -S -3000 -t work > /tmp/pane.logDump last 3000 lines of a pane to a file for triage without attaching
no commands match — try a different search