Is it possible to find tmux sockets currently in use?

后端 未结 2 485
北荒
北荒 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: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.

提交回复
热议问题