Tmux用法

Tmux – terminal multiplexer

 

Managing tmux server

tmux    #start tmux server

tmux at  #attach running sesseion to terminal

tmux ls  #list running tmux sessions

exit     #close tmux session

 

 

Sharing session between terminals

tmux new –s session_name  #make new named session

tmux at –t session_name    #attach to exists session(s)

tmux kil-session –t session_name #killnamed session

 

所有的命令以ctrl+b组合

 

c       create new window

n/p    move to next/previous windows

f      find window  by name

w     menu with all windows

&     kill current window

,      rename window

 

%     split window. Add vertical pane to right

“      split window add horizontal pane below

←/ →   move focus to left/right pane

↑/↓      move focus to upper/lower pane

 

!        break current pane into new window

x        kill the current pane

 

[        enter copy mode

         CTRL-SPACE or CTRL+@  开始选择

         移动光标到选择区域

         Alt+w 复制选择区域

]       粘贴选则的区域

 

?       show tmux key bindings 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值