Is it possible to find tmux sockets currently in use?

后端 未结 2 545
北荒
北荒 2021-02-18 22:02

I am trying to get a list of tmux sockets that are currently being used but the best solution I\'ve come up with so far is to check in /tmp/tmux* or TMPDIR.

As far as I

2条回答
  •  萌比男神i
    2021-02-18 22:50

    Assuming that the tmux sockets are located at /tmp, which is where they wil be by default, To list all the sockets,

    lsof | grep tmp/tmux

提交回复
热议问题