Synchronize panes tmux
Send keystrokes to all panes simultaneously (multi-server ops)
tmux setw synchronize-panes on
more tmux
all 17 commands →
Send command to all panes
tmux list-panes -s -F '#{session_name}:#{window_index}.#{pane_index}' | xargs -I{} tmux send-keys -t {} 'uptime' Enter
Scripted detached session
tmux new-session -d -s work && tmux send-keys -t work 'tail -f /var/log/app.log' Enter
Capture pane scrollback
tmux capture-pane -p -S -3000 -t work > /tmp/pane.log
New named session
tmux new-session -s work
Attach to session
tmux attach-session -t work