liuerfire's Blog

Linux, Python, Vim, OnePiece...

开始写个pacman的gui前端小程序

tmux的使用方法和个性化配置

liuerfire posted @ 2012年2月16日 20:57 in Linux with tags tmux , 14070 阅读

用了这么久的Linux,还是昨天听说tmux,真是相当的惭愧啊。不过,既然发现了这个好东西,就该好好的学习下它的用法。花了一点时间看了它的man手册,了解了一些tmux的基本使用方法,主要是一些快捷键的绑定,要使用快捷键,必须先使用前缀键(prefix key,不知道该怎么翻译。。。),默认是Ctrl + b,即C-b,然后就是一些快捷用法:

  • C-b ? 显示快捷键帮助
  • C-b C-o 调换窗口位置
  • C-b 空格键 采用下一个内置布局
  • C-b ! 把当前窗口变为新窗口
  • C-b " 模向分隔窗口
  • C-b % 纵向分隔窗口
  • C-b q 显示分隔窗口的编号
  • C-b o 跳到下一个分隔窗口
  • C-b 上下键 上一个及下一个分隔窗口
  • C-b C-方向键 调整分隔窗口大小
  • C-b c 创建新窗口
  • C-b 0~9 选择几号窗口
  • C-b c 创建新窗口
  • C-b n 选择下一个窗口
  • C-b l 最后使用的窗口
  • C-b p 选择前一个窗口
  • C-b w 以菜单方式显示及选择窗口
  • C-b s 以菜单方式显示和选择会话
  • C-b t 显示时钟

了解了一些常用快捷键后,再来看看如何配置tmux。tmux的配置文件一般写在~/.tmux.conf里,没有就新建一个。配置tmux,无非就是把一些快捷键改成自己习惯的,比如默认的prefix key, C-b,按起来就不是很方便,我们可以把C-b改成C-a,代码如下:

set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix

在各个pane之间移动,我们也可以改成和vim一样:

bind-key k selectp -U
bind-key j selectp -D
bind-key h selectp -L
bind-key l selectp -R

就先简单的介绍在这里,具体的可以自己man tmu。下面是我的tmux的截图:

  • 无匹配
seo service london 说:
2024年1月16日 20:46

Good – I should certainly pronounce, impressed with your web site. I had no trouble navigating through all tabs as well as related info ended up being truly easy to do to access. I recently found what I hoped for before you know it in the least. Quite unusual. Is likely to appreciate it for those who add forums or something, site theme 

토토사이트 说:
2024年2月01日 13:46

I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post

먹튀폴리스주소 说:
2024年2月01日 13:55

lead to the elimination of some workers other jobs will be created, particularly for computer professionals, and that growth in output will increase overall employmentIt is more likely that computers and communications will lead to changes in the types of workers needed for different occupations rather than to changes in total employment.

온라인카지노추천 说:
2024年2月01日 14:38

Acknowledges for penmanship such a worthy column, I stumbled beside your blog besides predict a handful advise. I want your tone of manuscript...

메이저사이트 说:
2024年2月01日 14:48

The PCSO Lotto Result today and yesterday this October 2023 is here! Refresh page for official winning numbers - 6/58, 6/55, 6/49, 6/45, 6/42, Swertres 

토토사이트추천 说:
2024年2月01日 14:48

This article is enjoyable in addition to resourceful. Image picking some sort of institutional go and this also possesses served everyone having one aspect.

메이저놀이터추천 说:
2024年2月01日 14:58

Really I enjoy your site with effective and useful information. It is included very nice post with a lot of our resources.thanks for share. i enjoy this post.I really loved reading your blog. It was very well authored and easy to understand.

사설먹튀검증 说:
2024年2月01日 15:02

Appreciates for the purpose of penmanship a truly helpful line, To look at manifested next to your webblog except quote two enable. Iwould want varieties build up regarding manuscript... 

토토사이트검증 说:
2024年2月01日 15:11

This is very useful information! I've got totally relished examining ones details and have absolutely go to the conclusion that you'll be suitable in relation to quite a few. That you are good.

먹튀사이트조회 说:
2024年2月01日 15:19

Nice post. I was checking constantly this blog and I am impressed! Extremely helpful information specially the last part I care for such info a lot. I was seeking this particular information for a very long time.

검증나라 说:
2024年2月01日 15:25

This is my first time visit here. From the tons of comments on your articles,I guess I am not only one having all the enjoyment right here!Very efficiently written information. It will be beneficial to anybody who utilizes it, including me. Keep up the good work. For sure i will check out more posts. This site seems to get a good amount of visitors.

토토사이트 说:
2024年2月01日 15:28

As technology continues to advance, the future of free online file storage and sharing platforms holds exciting possibilities Blockchain technology may enhance the security and transparency of these platforms, offering immutable records of file interactions and transactions.

먹튀사이트 说:
2024年2月01日 15:44

Nice knowledge gaining article. This post is really the best on this valuable topic.Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!..

토토패밀리 说:
2024年2月01日 15:50

Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post.Very informative post! 

먹튀검증커뮤니티 说:
2024年2月01日 15:55

Nice post. I was checking constantly this blog and I am impressed! Extremely helpful information specially the last part I care for such info a lot. I was seeking this particular information for a very long time.

토토사이트 说:
2024年2月01日 16:03

I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post

온라인카지노추천 说:
2024年2月01日 16:07

Appreciates for the purpose of penmanship a truly helpful line, To look at manifested next to your webblog except quote two enable. Iwould want varieties build up regarding manuscript... 

안전카지노사이트 说:
2024年2月01日 16:20

This is very useful information! I've got totally relished examining ones details and have absolutely go to the conclusion that you'll be suitable in relation to quite a few. That you are good.

토토사이트추천 说:
2024年2月01日 16:26

As technology continues to advance, the future of free online file storage and sharing platforms holds exciting possibilities Blockchain technology may enhance the security and transparency of these platforms, offering immutable records of file interactions and transactions.

แนะนำ เว็บบาคาร่า 说:
2024年2月01日 16:33

I am happy to find this post very useful for me, as it contains lot of information. I always prefer to read the quality content and this thing I found in you post. Thanks for sharing

토토먹튀검증 说:
2024年2月01日 16:48

I was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject.Stopping by your blog helped me to get what I was looking for.

스포츠토토 说:
2024年2月01日 16:58

Acknowledges for penmanship such a worthy column, I stumbled beside your blog besides predict a handful advise. I want your tone of manuscript...

먹튀검증커뮤니티 说:
2024年2月01日 17:05

Nice to be visiting your blog once more, it has been months for me. Well this article that ive been waited for therefore long. i want this article to finish my assignment within the faculty, and it has same topic together with your article. Thanks, nice share

토토사이트 说:
2024年2月01日 17:43

Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!ThanksStopping by your blog helped me to get what I was looking for.

먹튀검증 说:
2024年2月01日 17:50

I was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject.Stopping by your blog helped me to get what I was looking for.

메이저사이트 说:
2024年2月01日 17:59

Thank you so much as you have been willing to share information with us. We will forever admire all you have done here because you have made my work as easy as ABC.

먹튀검증업체 说:
2024年2月01日 18:03

Nice knowledge gaining article. This post is really the best on this valuable topic.Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!..

먹튀테일 说:
2024年2月01日 18:10

The way you present your arguments is persuasive and backed by solid evidence. I enjoy reading your articles and sharing them with my colleagues.

카지노사이트 说:
2024年2月01日 18:17

very entertaining character. but it seems that it will be weaker than the other characters

안전토토사이트 说:
2024年2月01日 18:24

Thank you so much as you have been willing to share information with us. We will forever admire all you have done here because you have made my work as easy as ABC.

메이저놀이터 说:
2024年2月01日 18:48

Every one of the substance you said in post is too great and can be extremely helpful. I will remember it, much obliged for sharing the data continue upgrading, looking forward for more posts.Thanks . Decent to be going to your web journal once more, it has been months for me. 

먹튀검증커뮤니티 说:
2024年2月01日 19:00

Nice to be visiting your blog again, it has been months for me. Well this article that I've been waiting for so long. I need this article to complete my assignment in the college, and it has the same topic with your article. Thanks, great share 

먹튀사이트조회 说:
2024年2月01日 19:17

The PCSO Lotto Result today and yesterday this October 2023 is here! Refresh page for official winning numbers

토토사이트 说:
2024年2月01日 19:27

I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post

먹튀검증업체 说:
2024年2月01日 19:36

Every one of the substance you said in post is too great and can be extremely helpful. I will remember it, much obliged for sharing the data continue upgrading, looking forward for more posts.Thanks . Decent to be going to your web journal once more, it has been months for me. 

먹튀검증 说:
2024年2月01日 19:54

I am happy to find this post very useful for me, as it contains lot of information. I always prefer to read the quality content and this thing I found in you post. Thanks for sharing

News Network Today 说:
2024年7月18日 20:51

Pleasant facts, precious in addition to fantastic pattern, seeing that write about good stuff having good ideas in addition to methods, many good facts in addition to enthusiasm, both equally which I needed, on account of deliver a really helpful information in this article.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter