From b862bdf2c6acd8380e233ef05a9357290e802d53 Mon Sep 17 00:00:00 2001 From: daacheng <1193685537@qq.com> Date: 2021年8月19日 18:07:27 +0800 Subject: [PATCH 1/3] =?UTF-8?q?tmux=E5=B8=B8=E7=94=A8=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...15344円275円234円345円221円275円344円273円244円.md" | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 "linux/tmux345円270円270円347円224円250円346円223円215円344円275円234円345円221円275円344円273円244円.md" diff --git "a/linux/tmux345円270円270円347円224円250円346円223円215円344円275円234円345円221円275円344円273円244円.md" "b/linux/tmux345円270円270円347円224円250円346円223円215円344円275円234円345円221円275円344円273円244円.md" new file mode 100644 index 0000000..fb345f7 --- /dev/null +++ "b/linux/tmux345円270円270円347円224円250円346円223円215円344円275円234円345円221円275円344円273円244円.md" @@ -0,0 +1,23 @@ +## tmux 命令 +#### 会话 session +* tmux:直接创建一个默认的会话session +* tmux ls: 查看所有的会话,快捷键:ctrl+b s +* tmux new -s session_name: 指定会话名称创建会话 +* tmux detach: 离开会话,快捷键:ctrl+b d +* tmux a -t session_name: 进入会话 +* tmux kill-session -t session_name: 杀掉会话,快捷键:ctrl+d +* tmux rename-session -t old_name new_name: 重命名session + +#### 窗口 windows +* tmux new-window -n window_name: 新建一个窗口 +* **ctrl+b w: 查看所有窗口** +* tmux select-window -t window_name: 切换窗口 +* tmux kill-window -t window_name: 关闭窗口,快捷键:ctrl+b & 关闭当前窗口 + +#### 窗格 pane +* tmux split-window: 上下切割,快捷键:ctrl+b % +* tmux split-window -h: 左右切割,快捷键:ctrl+b " +* ctrl+b 方向键:切换窗格 +* ctrl+b x: 关闭窗格 + + From 4c5655545bc04649ae8a994cf3fe630d272bef07 Mon Sep 17 00:00:00 2001 From: daacheng <1193685537@qq.com> Date: 2021年8月19日 18:10:22 +0800 Subject: [PATCH 2/3] update main --- linux/main.md | 1 + 1 file changed, 1 insertion(+) diff --git a/linux/main.md b/linux/main.md index 8186955..cedac38 100644 --- a/linux/main.md +++ b/linux/main.md @@ -1,5 +1,6 @@ ## Linux相关 1. [Linux常用操作命令(更新......)](Linux常用操作命令.md) +2. [tmux常用操作命令](tmux常用操作命令.md) ## Linux基础 2. [Linux文件属性与权限](Linux文件权限.md) From 2e13f23254e8685a11b62ddf6c13b3774d0a61ad Mon Sep 17 00:00:00 2001 From: daacheng <1193685537@qq.com> Date: 2021年9月28日 15:45:59 +0800 Subject: [PATCH 3/3] update update --- .../redis345円237円272円347円241円200円346円223円215円344円275円234円.md" | 2 ++ 1 file changed, 2 insertions(+) diff --git "a/others/redis345円237円272円347円241円200円346円223円215円344円275円234円.md" "b/others/redis345円237円272円347円241円200円346円223円215円344円275円234円.md" index 8c77452..8c74b90 100644 --- "a/others/redis345円237円272円347円241円200円346円223円215円344円275円234円.md" +++ "b/others/redis345円237円272円347円241円200円346円223円215円344円275円234円.md" @@ -12,6 +12,8 @@ Redis是一个基于内存的高性能key-value数据库。 #### 4.redis是单进程单线程的 redis利用队列将并发访问变为串行访问。 +redis连接指定数据库:redis-cli -n 1 + ## key * keys * : 查看所有的key * del key : 删除指定的key

AltStyle によって変換されたページ (->オリジナル) /