Synchronize panes

Send keystrokes to all panes simultaneously (multi-server ops)

tmux setw synchronize-panes on

tool
tmux17 commands
tags
tmux

More tmux commands

  • tmux list-panes -s -F '#{session_name}:#{window_index}.#{pane_index}' | xargs -I{} tmux send-keys -t {} 'uptime' Enter

    Run 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' Enter

    Spawn background session and inject a command; survives SSH disconnect

  • tmux capture-pane -p -S -3000 -t work > /tmp/pane.log

    Dump last 3000 lines of a pane to a file for triage without attaching

  • tmux new-session -s work

    Start a new tmux session named 'work'

  • tmux attach-session -t work

    Attach to an existing named session

all 17 tmux commands