Capture pane scrollback

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

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

tool
tmux17 commands
tags
tmuxdebugobservability

More tmux commands

  • tmux new-session -s work

    Start a new tmux session named 'work'

  • tmux attach-session -t work

    Attach to an existing named session

  • tmux ls

    Show all active tmux sessions

  • <prefix> d

    Detach from current session leaving it running in background

  • tmux kill-session -t work

    Terminate a named session and all its windows

all 17 tmux commands