Using a Shared Account and Grouped Sessions

When two people are attached to the same tmux session, they usually both see the same thing and interact with the same windows. But there are times when it’s helpful if one person can work in a different window without completely taking over control.

Using “grouped sessions,” you can do just that. Let’s demonstrate by creating a new session on our remote server called groupedsession.

 tmux@puzzles$ ​​tmux​​ ​​new-session​​ ​​-s​​ ​​groupedsession

Then, instead of attaching to the session, another user can join that session by creating a new session by specifying the target of the original session groupedsession and then specifying their own session name, like this:

 tmux@puzzles$ ​​tmux​​

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.