In previous articles we have already told you what tmux is. Today we will tell you how the copy and paste procedure is performed.
There is mouse support in tmux, which allows you to select text and copy it to the clipboard. To enable mouse support in tmux, add the following line to the .tmux.conf
configuration file:
set -g mouse on
After that, you can use the mouse to select text, just like in a normal terminal. Once you have selected the text, it will automatically be copied to the internal tmux buffer. To paste the copied text into another part of the terminal, press `Ctrl + b`, then `]`. This will open a panel for pasting text into the terminal. Paste the text and press `Enter` to close the panel.
Alternatively, you can use the `Alt + W` keys to copy the selected text to the system clipboard, and `Ctrl + b` then `#` to view a list of copied text snippets (usually for pasting text from previous sessions).
The order of operations will be as follows:
As you can see, even an absolute beginner can cope with this task!