1.退出(detach)當前tmux
ctrl+d
2.重新進入tmux
tmux attach -t <target-session>
如:當前有很多session,那么選擇哪一個呢?
2.1 使用命令tmux ls來獲取target-session
jello@jello:~$ tmux ls
1: 1 windows (created Tue Jan 17 09:28:05 2019) [207x86]
13: 1 windows (created Tue Jan 17 17:49:10 2019) [207x86]
16: 1 windows (created Thu Jan 17 10:41:44 2019) [207x86]
19: 5 windows (created Tue Jan 17 10:53:06 2019) [207x86]
2.2 進入target-session為13的窗口
tmux attach -t 13