Persist copied text to disk.
Section: Copy mode and scrolling
Write the top buffer to a file
bash
bash
tmux save-buffer ~/tmux-buffer.txtExplanation
Useful after copying logs or diagnostics.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Copy mode and scrolling