[tmux] Copy and paste text from a tmux session

Posted Answer1215

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[tmux] Copy and paste text from a tmux session相关的知识,希望对你有一定的参考价值。

One non-obvious, but extremely useful, feature in tmux is copy-pasting text between panes. This also allows you to scroll back in a tmux sessoin. We‘ll cover how to use copy and paste in tmux using C-b [ and C-b ], for both emacs- and vim-style keybindings.

 

Get into the command mode:

C-b :

 

Type:

set-window-option mode-keys emacs

 

Copy & paste:

#enter copy mode:
C-b [

# select text:
C + space

# copy
C-w

# paste:
C-b ]

 

以上是关于[tmux] Copy and paste text from a tmux session的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu – Copy/paste and drag&drop not working in VMware machine with Ubuntu

sh never-copy-and-paste-code-from-the-internet-you-dont-understand.sh

Macbook pro Version 14.0 cannot copy and paste between different applicatons after updated system(示例

ESXi vSphere Client中copy paste如何启用

vim - copy a word

用vim从一个文件copy/paste到另一个文件