Tmux 使用教程

This blog is about a quick tutorial about Tmux.
You are welcomed to chat about it and if you like this blog, do not forget to give me a like.

Welcome to see my homepage and contact me: NicholasYe’s Homepage.


Workflow

  1. use tmux to create a new tmux window
  2. use Ctrl+b c to create a new session
  3. use Ctrl+b , to rename session
  4. use Ctrl+d to exit session or finally window
  5. use Ctrl+b d to detach window
  6. use tmux a to attach remaining window

Tutorial

  1. create a new pain

    • Ctrl+b % : create a split pain
      • Ctrl+b ← : switch to left pain
      • Ctrl+b → : switch to right pain
    • Ctrl+b " : create a vertical pain
    • exit : use exit to close the pain
  2. create a new window

    • Ctrl+b c : create a new window
      • Ctrl+b {number} : switch to the {number} window
      • Ctrl+b , : rename the window
    • exit : close the window
    • Ctrl+b d : detach from tmux
  3. session

    • tmux ls : show the working tmux
      • tmux rename-session -t {name} {new name} : rename exiting tmux session into new name
    • tmux attach -t {name} : attach tmux session (-t means target)
    • tmux new -s {name} : create new tmux with name
    • tmux kill-session -t {name} : kill tmux session with name
  4. overview

    • Ctrl+b w : show the overview of the current window

Please clearly mark the source of the article in the process of reproducing it! Respect for originality and intellectual property rights, thanks!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值