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
More tmux commands
-
tmux new-session -s workStart a new tmux session named 'work'
-
tmux attach-session -t workAttach to an existing named session
-
tmux lsShow all active tmux sessions
-
<prefix> dDetach from current session leaving it running in background
-
tmux kill-session -t workTerminate a named session and all its windows