2017-08-18 107 views

回答

0

tmux選項-S意味着套接字路徑(從man tmux):

-S socket-path 
       Specify a full alternative path to the server socket. If -S is specified, the default 
       socket directory is not used and any -L flag is ignored. 

所以,你必須找出tmux-S選項運行父目錄,並通過此選項tmux把它指向 備用套接字路徑。例如,你可以找到 tmux過程PID

$ ps aux | grep '[t]mux' 
ja  15121 0.0 0.0 20252 2236 pts/6 S+ 00:44 0:00 tmux -S new 

然後在/proc像這樣的檢查這個過程cwd

$ ls -l /proc/15121/cwd 
lrwxrwxrwx 1 ja users 0 Aug 19 00:52 /proc/15121/cwd -> /home/ja 

然後參考該tmux會議:

$ tmux -S /home/ja/new ls 
0: 1 windows (created Sat Aug 19 00:44:46 2017) [212x65] (attached)