2257
|
1 |
|
|
2 |
======
|
|
3 |
tmux
|
|
4 |
======
|
|
5 |
|
|
6 |
Basic workflow
|
|
7 |
==============
|
|
8 |
|
|
9 |
``tmux`` default prefix is ``Ctrl+B``. Start tmux by::
|
|
10 |
|
|
11 |
$ tmux
|
|
12 |
$ tmux new -s NAME
|
|
13 |
|
|
14 |
Basic commands::
|
|
15 |
|
|
16 |
* ``Ctrl+b c`` create a new window
|
|
17 |
* ``Ctrl+b 0`` switch to window 0
|
|
18 |
* ``Ctrl+b 1`` switch to window 1
|
|
19 |
* ``Ctrl+b 2`` switch to window 2 / etc
|
|
20 |
* ``Ctrl+b x`` kill current window
|
|
21 |
* ``Ctrl+b ,`` rename pane
|
|
22 |
* ``Ctrl+b d`` detach tmux
|
|
23 |
* ``Ctrl+b "`` split a pane horizontally
|
|
24 |
* ``Ctrl+b %`` split pane vertically
|
|
25 |
* ``ctrl+b <arrow>`` move around panes
|
|
26 |
* ``ctrl+b :`` resize pane
|
|
27 |
|
|
28 |
List all tmux sessions::
|
|
29 |
|
|
30 |
$ tmux ls
|
|
31 |
$ tmux list-sessions
|
|
32 |
|
|
33 |
To attack to specific session::
|
|
34 |
|
|
35 |
$ tmux a -t NAME
|
|
36 |
|
2258
|
37 |
Getting help
|
|
38 |
============
|
2257
|
39 |
|
2258
|
40 |
Dump key binding::
|
|
41 |
|
|
42 |
$ tmux list-keys
|
|
43 |
|
|
44 |
Dump available commands::
|
|
45 |
|
|
46 |
$ tmux list-commands
|
|
47 |
|
|
48 |
List everything::
|
|
49 |
|
|
50 |
$ tmux info
|
|
51 |
|