Managing Sessions

As you get more comfortable with tmux, you may find yourself using more than one tmux session simultaneously. For example, you may fire up unique tmux sessions for each application you’re working on so you can keep the environments contained. There are some great tmux features to make managing these sessions painless.

Moving Between Sessions

All tmux sessions on a single machine route through a single server. That means you can move effortlessly between your sessions from a single client.

Let’s try this out. Start two detached tmux sessions, one named “editor,” which launches Vim, and the other running the top command, called “processes”:

 $ ​​tmux​​ ​​new​​ ​​-s​​ ​​editor​​ ​​-d​​ ​​vim
 $ ​​tmux​​ ​​new​​ ​​-s​​

Get tmux 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.