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! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Working with Linux ??? Quick Hacks for the Command Line

You're reading from   Working with Linux ??? Quick Hacks for the Command Line Command line power like you've never seen

Arrow left icon
Product type Paperback
Published in May 2017
Publisher Packt
ISBN-13 9781787129184
Length 222 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
 I»ôfan I»ôfan
Author Profile Icon I»ôfan
I»ôfan
Bogdan Vaida Bogdan Vaida
Author Profile Icon Bogdan Vaida
Bogdan Vaida
Arrow right icon
View More author details
Toc

tmux – virtual consoles, background jobs and the like


In this section, we will be looking at another great tool called tmux. Tmux comes in particularly handy when working in remote ssh sessions, because it gives you the ability to continue your work from where you left off. It can also replace some of the features in terminator, if you are working, for example, on Mac, and you can't install terminator.

To get started with tmux on Ubuntu, we first need to install it:

sudo apt install tmux

Then just run the command:

tmux

And you will find yourself inside a brand new virtual console:

For demonstration purposes, we will open up a new tab that you can see the list of open sessions with tmux ls:

Let's start a new tmux named session:

tmux new -s mysession

Here we can see that opening a tmux session maintains the current directory. To list and switch tmux sessions inside tmux, hit Ctrl + B S.

We can see that we can switch to another tmux session, execute commands inside, and switch back to our initial...

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 $15.99/month. Cancel anytime
Visually different images