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:
tmux -S /tmp/shareds new -s shared
  1. Change the group of the socket to allow users of the group (this example allows sudoers)
chgrp sudo /tmp/shareds
  1. The users who want to join the group can use this command:
tmux -S /tmp/shareds attach -t shared

See you soon !
Keep learning !