Search This Blog

10 August, 2021

tmux saving the scrollback content to a file

Follow as below, i tried this in Ubuntu 18.04 LTS

All commands to be execute without quotes 

1) Use "prefix + :"

2) Type "capture-pane -S -5000 + Return"

Replace -5000 with the number of lines you'd like to save, or with - for all lines. This copies those lines into a buffer.

3) To save the buffer to a file, type "prefix + :"

4) Type in "save-buffer filename.txt + return".

By default Prefix is Ctrl+B for tmux

tmux enabling mouse interaction

Add the below line to the ~/.tmux.conf setw -g mouse on save the file and exit from the tmux shell, you should be able to use your mouse to ...