DEV Community

Connor Bode
Connor Bode

Posted on

5

Copy-paste in tmux

tmux is a great tool if you live in the shell. Sometimes you'll need to copy-paste between windows & panes. If you have a vertically split window, you can't use the mouse to copy text from one side to the other.

Here's how to copy-paste between tmux windows or panes:

  1. ctrl+b,[ allows you to move your cursor around
  2. ctrl+space starts copying from where the cursor is
  3. ctrl+w grabs the selection to the tmux clipboard
  4. ctrl+b,] pastes the clipboard out to the current window / pane

That's it, hope it helps you!


If this helped you, follow me on dev.to for more tips. I use dev.to as a journal, where I record any tricks that I see myself using regularly. You'll probably find it useful too!

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay