Warning
This article was last updated on 0001-01-01, the content may be out of date.

text

$ tmux ls
$ tmux attach -t 

text

$ tmux new -s  <session-name>

text

$ tmux detach 

text

# 使用会话编号
$ tmux attach -t 0

# 使用会话名称
$ tmux attach -t <session-name>

tmux 默认没有启用鼠标,导致无法使用鼠标滚动历史记录。启用鼠标后,还可以直接点击切换不同窗格,以及拖动选择文字复制。

set-option -g mouse on # open mouse scroll