Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with tmux

You're reading from   Getting Started with tmux Maximize your productivity by accessing several terminal sessions from a single window using tmux

Arrow left icon
Product type Paperback
Published in Sep 2014
Publisher Packt
ISBN-13 9781783985166
Length 148 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Victor Quinn Victor Quinn
Author Profile Icon Victor Quinn
Victor Quinn
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Jump Right In 2. Configuring tmux FREE CHAPTER 3. Sessions, Windows, and Panes 4. Manipulating Text 5. Diving Deeper 6. tmux for SSH, Pair Programming, and More 7. Using Other Tools with tmux A. Appendix Index

Interacting with the paste buffer


The paste buffer is a holding bucket for all of the text you will copy, which you will then be able to access later to paste onto any pane.

It is actually a stack, so each item copied from Copy mode is added at the top of the stack, and every new item is added at the top with every other item moved down by one. Each item in the paste buffer is assigned a number based on the order in which it went into the stack.

Pasting text from the paste buffer

Now that you've grabbed some text, you want to pull it from the paste buffer to get it back.

In any program that runs within tmux, move your cursor to the point where you want the text to be pasted and press <Prefix>, ].

For example, let's fire up nano:

$ nano

Once we do this, paste what we last copied with <Prefix>, ].

Sure enough, our text appears! Notice the nice symmetry, where you use <Prefix>, [ to enter Copy mode, and <Prefix>, ] to paste the text.

Now <Prefix>, ] is nice to paste the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime