TMUX — Sharing terminal between Users

apt-get update
apt-get install tmux

Starting a Tmux Session:

tmux new-session
tmux new-session -s <session-name>

Connecting to existing session:

tmux attach -t <session-number>
tmux attach -t <session-name>

Using Sockets for different users to connect:

To Start a new session
tmux -S /tmp/socket
Change its permission for other users to access
chmod 777 /tmp/socket
for other users to attach to the session
tmux -S /tmp/socket attach

The article was originally published at MicroPyramid blog.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
MicroPyramid

MicroPyramid

Python, Django, Android and IOS, reactjs, react-native, AWS, Salesforce consulting & development company