linux下如何退出tmux和重新进入tmux
时间:2019-01-29 20:33:59
收藏:0
阅读:2090
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
评论(0)