は(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)