tmux怎么切换

minseo / 2024-10-13 / 原文

参考
https://zhuanlan.zhihu.com/p/335818087

  1. 查看目前开启的tmux窗口
    列出所有会话
# tmux ls
0: 1 windows (created Sat Oct 12 15:05:13 2024) (attached)
1: 1 windows (created Sat Oct 12 15:34:13 2024) (attached)
2: 1 windows (created Sat Oct 12 16:08:24 2024) (attached)
  1. 根据id切换
# tmux attach -t 0