tmux tutorial

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/

 

posted @ 2013-12-09 15:35  spaceship9  阅读(344)  评论(0编辑  收藏  举报