Difference between revisions of "Tmux"

From Media Design: Networked & Lens-Based wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by 2 users not shown)
Line 8: Line 8:
  
 
For the **others**, you would connect with:
 
For the **others**, you would connect with:
 +
 +
For a read-only session, use the -r option:
  
 
   tmux -S /tmp/''shared'' attach -t ''shared'' -r
 
   tmux -S /tmp/''shared'' attach -t ''shared'' -r
  
For a read-only session, or:
+
Or for a full session, without -r:
  
 
   tmux -S /tmp/''shared'' attach -t ''shared''
 
   tmux -S /tmp/''shared'' attach -t ''shared''
  
For a full session.
 
  
 
== Detaching ==
 
== Detaching ==
Line 21: Line 22:
 
   ctrl-b d
 
   ctrl-b d
  
 +
also
 +
 +
  tmux detach
 +
 +
works too (in jupyter maybe only way)
  
  
Line 27: Line 33:
 
* 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]]

Latest revision as of 12:18, 16 June 2022

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