author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sun, 17 Jan 2021 17:48:27 +0200 | |
changeset 2503 | ef63c4afe404 |
parent 2437 | d5f98b5fdcb8 |
permissions | -rw-r--r-- |
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 |
||
2437
d5f98b5fdcb8
Navigating terminal screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2258
diff
changeset
|
52 |
Navigating terminal screen |
d5f98b5fdcb8
Navigating terminal screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2258
diff
changeset
|
53 |
========================== |
d5f98b5fdcb8
Navigating terminal screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2258
diff
changeset
|
54 |
|
d5f98b5fdcb8
Navigating terminal screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2258
diff
changeset
|
55 |
Use sequence ``Ctrl+b [`` to enter to copy mode. |
d5f98b5fdcb8
Navigating terminal screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2258
diff
changeset
|
56 |
|
d5f98b5fdcb8
Navigating terminal screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2258
diff
changeset
|
57 |
Copy mode allows navigation through tmux terminal screen by arrow keys and copy/paste |
d5f98b5fdcb8
Navigating terminal screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2258
diff
changeset
|
58 |
|
d5f98b5fdcb8
Navigating terminal screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2258
diff
changeset
|
59 |
Press ``Ctrl-c`` to leave copy mode. |
d5f98b5fdcb8
Navigating terminal screen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2258
diff
changeset
|
60 |