5

Tmux 命令 快捷键

 2 years ago
source link: https://sineatos.github.io/tools/develop/tmux/tmux-shortcut/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Tmux 命令 快捷键

May 30, 2018工具

参考: http://blog.csdn.net/u014015972/article/details/51611817

  • tmux new -s myname 可以指定Session名
  • [PREFIX-:] new -s 在tmux中创建一个会话
  • tmux attach-session -t myname 重新连接此会话
  • tmux attach
  • tmux attach -t basic 重新连接basic这个会话
  • tmux a -t basic 重新连接basic这个会话
  • tmux list-session
  • tmux ls 查看会话列表
  • [ PREFIX-s] 在tmux中查看会话列表并切换
  • tmux new-session <会话名>
  • tmux attach-session -t <会话名>
  • tmux rename-session -t <会话名>
  • tmux choose-session -t <会话名>
  • tmux kill-session -t <会话名>
  • tmux new -s panes
  • PREFIX-$ 重命名当前Session
  • PREFIX-d detach 分离会话
  • PREFIX-t 显示时钟
  • PREFIX-? 快捷键列表
  • PREFIX-: prompt

分割终端窗口

  • PREFIX-" 在光标当前所在窗格,横向分割出一个窗格
  • PREFIX-% 在光标当前所在窗格,竖向分割出一个窗格
  • PREFIX-! 关闭所有分割出来的窗格
  • PREFIX-x 关闭光标当前所在窗格,或直接Ctrl+d
  • PREFIX-{ 向前置换当前窗格
  • PREFIX-} 向后置换当前窗格
  • PREFIX-q 换查询窗格编号
  • PREFIX-方向键 在不同的窗格上移动
  • PREFIX按住不放-不同按同一个方向键 当前窗体不停地向这个方向改变大小

使用不同的窗口工作

  • PREFIX-c 创建一个新的窗口
  • PREFIX-p 切换到上一个窗口
  • PREFIX-n 切换到下一个窗口
  • PREFIX-f 搜索名字具有关键词的所有窗口
  • PREFIX-w 列出目前所创建的窗口,能看到窗口编号,在按编号直接切换窗口
  • PREFIX-0-9 直接切换到指定编号的窗口
  • PREFIX-, 修改当前窗口名字
  • PREFIX-d 临时断开所有的会话,用命令tmux attach恢复会话
  • PREFIX-& 关闭窗口,需要确认一下

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK