Tmux

From XPUB & Lens-Based wiki
Revision as of 11:18, 16 June 2022 by Michael Murtaugh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

sharing between different account involves using a "socket" -- a special file that can be configured to be sharable.

 tmux -S /tmp/shared new -s shared
 chgrp users /tmp/shared

Where shared is the name of the session, and users the name of a group that everybody is already a part of. See groups.

For the **others**, you would connect with:

For a read-only session, use the -r option:

 tmux -S /tmp/shared attach -t shared -r

Or for a full session, without -r:

 tmux -S /tmp/shared attach -t shared


Detaching

 ctrl-b d

also

  tmux detach

works too (in jupyter maybe only way)


Sources