O'Reilly logo

Getting Started with tmux by J.D. Victor Quinn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Advanced paste buffer usage

We just covered paste buffers in the last chapter, but there is more than we were able to cover there. So let's cover some of the more advanced usage first while it's fresh in our memory. We'll touch on the following advanced paste buffer topics:

  • Saving a paste buffer to a file
  • Loading a paste buffer from a file
  • Setting a paste buffer directly
  • Capturing pane contents to a paste buffer
  • Deleting copied text from a paste buffer
  • Clearing the paste buffer history

Saving a paste buffer to a file

Assume you've just copied a lot of excellent text to the paste buffer and now you want to save it to a file.

Of course, you could open a text editor, paste the contents of the buffer, and save a new file; however, tmux provides us with a handy ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required