Linux tmux 参考手册
2017-06-14 17:01
204 查看
快捷键
快捷键 | 描述 |
---|---|
C-b | Send the prefix key (C-b) through to the application. |
C-o | Rotate the panes in the current window forwards. |
C-z | Suspend the tmux client. |
! | Break the current pane out of the window. |
“ | Split the current pane into two, top and bottom. |
# | List all paste buffers. |
$ | Rename the current session. |
% | Split the current pane into two, left and right. |
& | Kill the current window. |
‘ | Prompt for a window index to select. |
( | Switch the attached client to the previous session. |
) | Switch the attached client to the next session. |
, | Rename the current window. |
- | Delete the most recently copied buffer of text. |
0 | Prompt for an index to move the current window. |
0 to 9 | Select windows 0 to 9. |
: | Enter the tmux command prompt. |
; | Move to the previously active pane. |
= | Choose which buffer to paste interactively from a list. |
? | List all key bindings. |
D | Choose a client to detach. |
L | Switch the attached client back to the last session. |
[ | Enter copy mode to copy text or view the history. |
] | Paste the most recently copied buffer of text. |
c | Create a new window. |
d | Detach the current client. |
f | Prompt to search for text in open windows. |
i | Display some information about the current window. |
l | Move to the previously selected window. |
n | Change to the next window. |
o | Select the next pane in the current window. |
p | Change to the previous window. |
q | Briefly display pane indexes. |
r | Force redraw of the attached client. |
m | Mark the current pane (see select-pane -m). |
M | Clear the marked pane. |
s | Select a new session for the attached client interactively |
t | Show the time. |
w | Choose the current window interactively. |
x | Kill the current pane. |
z | Toggle zoom state of the current pane. |
{ | Swap the current pane with the previous pane. |
} | Swap the current pane with the next pane. |
~ | Show previous messages from tmux, if any. |
Page Up | Enter copy mode and scroll one page up. |
Up,Down,Left,Right | Change to the pane above, below, to the left, or to the right of the current pane. |
M-1 to M-5 | Arrange panes in one of the five preset layouts: even-horizontal, even-vertical, main-h 4000 orizontal, main-verti‐cal, or tiled. |
Space | Arrange the current window in the next preset layout. |
M-n | Move to the next window with a bell or activity marker. |
M-o | Rotate the panes in the current window backwards. |
M-p | Move to the previous window with a bell or activity marker. |
C-Up, C-Down, C-Left, C-Right | Resize the current pane in steps of one cell. |
M-Up, M-Down, M-Left, M-Right | Resize the current pane in steps of five cells. |
命令
#管理客户端和会话
attach
attach-session [-dEr] [-c working-directory] [-t target-session](alias: attach)如果在tmux外执行,则会新建一个客户端,并进入;如果在tmux内部,则之间切换相应的会话。-d,使其他使用这个会话的客户端推出。-r,开启只读模式
detach
detach-client [-P] [-a] [-s target-session] [-t target-client](alias: detach)has
has-session [-t target-session](alias: has)报告是否存在对话
kill-server
杀死所有会话kill-session
kill-session [-a] [-t target-session]杀死所有会话,-a杀死除了指定的之外的会话
lsc
list-clients [-F format] [-t target-session](alias: lsc)列出所有的客户端
lscm
list-commands(alias: lscm)列出所有的命令
ls
list-sessions [-F format](alias: ls)列出所有的会话
lockc
lock-client [-t target-client](alias: lockc)锁定客户端
locks
lock-session [-t target-session]锁定所有会话的客户端(alias: locks)
new
new-session [-AdDEP] [-c start-directory] [-F format] [-n window-name][-s session-name] [-t target-session] [-x width] [-y height][shell-command](alias: new)创建一个新的会话
refresh
refresh-client [-S] [-t target-client](alias: refresh)刷新客户端信息
rename
rename-session [-t target-session] new-name(alias: rename)重新命名会话
showmsgs
show-messages [-IJT] [-t target-client](alias: showmsgs)source
source-file path(alias: source)从路径上执行命令
start
start-server(alias: start)开启tmux服务,不会建立会话
suspendc
suspend-client [-t target-client](alias: suspendc)挂起客户端
switchc
switch-client [-Elnpr] [-c target-client] [-t target-session] [-Tkey-table](alias: switchc)切换客户端
其他
其他命令建议用快捷键相关文章推荐
- HTML ASCII 参考手册
- IFC4 在线参考手册
- OpenCV参考手册之Mat类详解
- GTK参考手册下载
- Tkinter 8.5 参考手册: a GUI for Python (五)11 窗口的名称
- Libevent参考手册第三章:与事件循环一起工作
- JavaScript Array 对象参考手册
- bash参考手册之六(Bash特性)续四
- HTML 语言代码参考手册
- OpenCV参考手册之Mat类详解(一)
- Sass学习笔记 — 4. 参考手册
- uC/OS-II 常用函数参考手册
- 使用 Flash 创作工具时,可能需要参考的若干重要手册
- DHTML Scriptlets 容器对象参考手册
- jQuery 参考手册 - 选择器
- Python参考手册-字符串
- Spring Framework 开发参考手册 之十 使用JDBC进行数据访问
- HTML5参考手册之事件
- HTML5简明教程-1.1.2.HTML5Canvas参考手册 之 笔触strokeStyle
- HTML DOM参考手册