Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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

Using tmux for pair programming


So we saw how to create sessions and how you can attach an existing session, but did you wonder what would happen if more than one terminal attached to the same session?

The ability to connect multiple terminals to the same session ends up being one of the biggest advantages tmux offers. By allowing two or more terminal windows to connect to the same tmux session, tmux becomes an extremely powerful collaboration tool. With tmux, two or more people can see and even interact with the same content at the same time!

Connecting to the same session locally

Before we get to full pair programming, let's try just connecting to the same session locally in two different terminal windows and see what happens.

If you followed the previous instructions, you should be able to pull up your tmux session by opening a new terminal window and running:

$ ssh tmux -t -- 'tmux attach-session -t MyServer'

That will connect to the box over SSH and attach your tmux session. Now, open another...

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 €18.99/month. Cancel anytime