tmux tutorial

本文介绍了一个关于tmux快速入门的教程,包括安装tmux、tmux的基本工作原理及使用方式,提供了tmux的常用快捷键说明,并给出了如何在tmux中进行复制粘贴的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

This is a great tutorial about tmux quick start:

http://www.youtube.com/watch?v=wKEGA8oEWXw&noredirect=1

and its text script , just read it :)

http://timestream.net/screencasts/tmux-script.txt

 

Here's the very nice functionailities.

1)install tmux

2)tmux works in this way.

 

terminal ----- Tmux client ----|                               |----- Shell

terminal ----- Tmux client ----~ Tmux Server ---- ~------ Shell

terminal ----- Tmux client ----|                               |----- Shell

 

3) call tmux.  PREFIX = Control + b

 

some shortcuts:

PREFIX + ? = tmux help

PREFIX + c = tmux create new window

PREFIX + n = next window

PREFIX + p = previous window

PREFIX + 7 = to go tmux window 7

PREFIX + [ = tmux copy mode

                     (space  start to copy. Enter = Copy to tmux , also exists copy mode. arrow button for cursor moving)

PREFIX + ] = tmux paste mode ( can paste in any tmux window )

and so on. for more, see          PREFIX + ?

 

4) attach tmux window

in terminal , input

$~ tmux attach # this will let you attach to the client connected with the tmux server

this well explains the chart in the section 2) above.

To get out the tmux client session, you just need

$~ tmux detach #

 

 

**************

if you want to use COPY/PASTE commands as vi in tmux, just read this http://jasonwryan.com/blog/2011/06/07/copy-and-paste-in-tmux/

 

转载于:https://www.cnblogs.com/spaceship9/p/3465516.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值