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

Playing around with sessions, windows, and panes

So now that we have a high-level understanding, let's take a little tour of sessions, windows, and panes. Let's start totally fresh with a new terminal window and no existing tmux sessions. Start by creating a session named work:

$ tmux new-session -s work

You'll see a new session started with the name work. This session, currently, has a single window with a single pane.

Let's create another window. Recall that this is done by pressing <Prefix>, c (c for create). Now you have one session, two windows, and two panes. Each window has a single pane, as shown in the following screenshot:

Playing around with sessions, windows, and panes

Multiple sessions

Now let's see what it's like working with more than one session. Let's first detach the current session. Recall that in order to do so, we'll press <Prefix>, d (d for detach).

Now that the work session is detached, we are back at a command line, and your screen should be similar to the next screenshot...

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 AU $24.99/month. Cancel anytime