I have created a shared socket for tmux to use.
tmux -S /tmp/pair
Then I have a 2nd user attach to the socket.
tmux -S /tmp/pair attach
How do I tell from the first session, the one that created the socket, tell that the 2nd user is connected?
I'm guessing it would be something from the lsof
command.
You can use the list-clients
command. By itself, it displays all clients connected to the server. If you specify a session with the -t
option, it shows clients attached to the named session.
Like another user said in comments <prefix> D
will list all the sessions but keep in mind that pressing enter will detach that client (which may or may not be what you want)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With