Hermit Notebook

Share a terminal session using Tmux

Reminder: you can left-scroll and right-scroll the long code blocks

tmux is a well-known utility which allow multiplexing of virtual consoles.

Follow the simple steps above in order to share a terminal session.

  1. Create a named session with a defined socket:
1
tmux -S /tmp/shareds new -s shared
  1. Change the group of the socket to allow users of the group (this example allows sudoers)
1
chgrp sudo /tmp/shareds
  1. The users who want to join the group can use this command:
1
tmux -S /tmp/shareds attach -t shared

See you soon !
Keep learning !