Tmux: Difference between revisions
(One intermediate revision by one other user not shown) | |||
Line 21: | Line 21: | ||
ctrl-b d | ctrl-b d | ||
also | |||
tmux detach | |||
works too (in jupyter maybe only way) | |||
Line 27: | Line 32: | ||
* https://www.howtoforge.com/sharing-terminal-sessions-with-tmux-and-screen#sharing-between-two-different-accounts-with-tmux | * https://www.howtoforge.com/sharing-terminal-sessions-with-tmux-and-screen#sharing-between-two-different-accounts-with-tmux | ||
* https://tmuxcheatsheet.com/ | * https://tmuxcheatsheet.com/ | ||
[[Category:Cookbook]] |
Revision as of 15:14, 11 January 2021
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:
tmux -S /tmp/shared attach -t shared -r
For a read-only session, or:
tmux -S /tmp/shared attach -t shared
For a full session.
Detaching
ctrl-b d
also
tmux detach
works too (in jupyter maybe only way)
Sources