Book Image

Getting Started with tmux

By : Victor Quinn
Book Image

Getting Started with tmux

By: Victor Quinn

Overview of this book

Table of Contents (16 chapters)
Getting Started with tmux
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Using tmux over SSH for long lived sessions


How many times have you been connected to a remote server over SSH just to have some network blip terminate your session, putting you back at square one when you reconnect?

With tmux, you can connect to a remote server, start a tmux session, and set up windows and panes the way you'd like them. Then, if you get disconnected from the remote server for any reason—be it a network blip, the SSH session timing out, disconnecting from a VPN, or simply closing your laptop to go home for the day—you can SSH into that machine later and reconnect to your tmux session which has continued running, preserving your state as you left it.

This is my favorite use of tmux and one that saves the most time in my daily workflow. Not only because it is useful to deal with network connectivity issues gracefully, but also since most remote servers running Linux are rarely terminated; this means that once you start a tmux session, it can persist for weeks or months.

Practically...