We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 278f28f commit b862bdfCopy full SHA for b862bdf
linux/tmux常用操作命令.md
@@ -0,0 +1,23 @@
1
+## tmux 命令
2
+#### 会话 session
3
+* tmux:直接创建一个默认的会话session
4
+* tmux ls: 查看所有的会话,快捷键:ctrl+b s
5
+* tmux new -s session_name: 指定会话名称创建会话
6
+* tmux detach: 离开会话,快捷键:ctrl+b d
7
+* tmux a -t session_name: 进入会话
8
+* tmux kill-session -t session_name: 杀掉会话,快捷键:ctrl+d
9
+* tmux rename-session -t old_name new_name: 重命名session
10
+
11
+#### 窗口 windows
12
+* tmux new-window -n window_name: 新建一个窗口
13
+* **ctrl+b w: 查看所有窗口**
14
+* tmux select-window -t window_name: 切换窗口
15
+* tmux kill-window -t window_name: 关闭窗口,快捷键:ctrl+b & 关闭当前窗口
16
17
+#### 窗格 pane
18
+* tmux split-window: 上下切割,快捷键:ctrl+b %
19
+* tmux split-window -h: 左右切割,快捷键:ctrl+b "
20
+* ctrl+b 方向键:切换窗格
21
+* ctrl+b x: 关闭窗格
22
23
0 commit comments