By continuing to navigate on this website, you accept the use of cookies to serve you more relevant services & content.
For more information and to change the setting of cookies on your computer, please read our Cookie Policy.

TMUX - Sharing terminal between Users

More Often you would've come across sharing screens with applications like Teamviewer, Windows Remote Desktop Connection or remmina (if you're a Linux user). But if you want to share only your terminal, you can look up to Tmux. 

Installing Tmux:

apt-get update
apt-get install tmux

Starting a Tmux Session:

tmux new-session

This starts a new tmux session by default with a session-name 0. When you initialize a new session, will be 1 and so on. If you want to start a named session, the command would be

tmux new-session -s <session-name>

Connecting to existing session:

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

The above will only be possible if you're logged in as the same user as one sharing the session.

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
    Posted On
  • 02 December 2013
  • By
  • Micropyramid

Need any Help in your Project?Let's Talk

Latest Comments
Related Articles
How to Do Page Redirections with Nginx.

Here we learn how to redirect a www to non-www or vice-versa also we see how to redirect pages. We will see differences between 301 ...

Continue Reading...
Understanding Logstash Parsing Configurations and options

In This Tutorial we will learn to customize Logstash to parse any type of Log Files. Logstash helps us to process logs and other event ...

Continue Reading...
Setting Up Gitlab container Registry on own Domain.

GitLab Container Registry is a secure and private registry for Docker images integrated completely in Gitlab. In this tutorial we will setup and use GitLab ...

Continue Reading...
open source packages

Subscribe To our news letter

Subscribe and Stay Updated about our Webinars, news and articles on Django, Python, Machine Learning, Amazon Web Services, DevOps, Salesforce, ReactJS, AngularJS, React Native.
* We don't provide your email contact details to any third parties