Send command to all panes tmux
Run a command in every pane of the current session
tmux list-panes -s -F '#{session_name}:#{window_index}.#{pane_index}' | xargs -I{} tmux send-keys -t {} 'uptime' Enter
more tmux
all 17 commands →
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
List sessions
tmux ls