Is it possible to find tmux sockets currently in use?

后端 未结 2 484
北荒
北荒 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条回答
  • 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

    0 讨论(0)
  • 2021-02-18 22:52

    To list all sockets used by tmux you can use lsof:

    lsof -U | grep '^tmux'
    

    Use sudo if the inquirer doesn't own the process.

    0 讨论(0)
提交回复
热议问题