wiki/运维/操作系统/Linux/工具/6.会话窗口解绑工具tmux.md
2025-01-02 10:46:09 +08:00

13 lines
652 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

tmux是一个会话于窗口解绑的工具举个例子当网络抖动的时候xshell等窗口向linux发起会话时会因为网络抖动而中断当前会话所执行的程序而通过mtux则当窗口关闭后会话仍保持。
### 创建会话
```shell
tmux #创建一个会话命名按0...排序
tmux new -s NAME #创建一个会话,自定义命名
tmux ls #查看当前所有会话
Ctrl+d #删除当前会话
tmux attach -t NAME #重新接入会话
tmux kull-session-t NAME #杀死某个会话
tmux split-window #上下分格
tmux split-window -h #左右分格
```