Switch to a window by number

Jump to a window by its index

<prefix> 0-9

tool
tmux17 commands
tags
tmux

More tmux commands

  • <prefix> [

    Scroll and copy text; move with the arrows or vi keys

  • tmux setw synchronize-panes on

    Type into all panes at once: handy for several servers, and for making the same mistake on all of them

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

    Run a command (here uptime) 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

    Start a background session and send a command to it; it keeps running after SSH disconnects

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

    Save the last 3000 lines of a pane to a file for review, without attaching

all 17 tmux commands