Difference between revisions for tmux
|
|
Next edit →
Revision 3 as of
08/05/2019 09:53
▼
4
08/05/2019 10:00
EvaggelosBalaskas
3
08/05/2019 09:53
EvaggelosBalaskas
2
07/16/2018 09:31
EvaggelosBalaskas
(2.2 KiB) +507 EvaggelosBalaskas |
| Merge of Version1 & Version2 | |
|---|---|
| 13 | |
| 14 | %% |
| 15 | |
| 16 | === version === |
| 17 | |
| 18 | %%(bash) |
| 19 | $ tmux -V |
| 20 | tmux 2.6 |
| 21 | %% |
| 22 | |
| 23 | === list === |
| 24 | |
| 25 | %%(bash) |
| 26 | ~> tmux ls |
| 27 | ebal: 1 windows (created Mon Aug 5 06:47:35 2019) [125x39] (attached) |
| 28 | %% |
| 29 | |
| 30 | === new session === |
| 31 | |
| 32 | %%(bash) |
| 33 | $ tmux new -s ebal |
| 34 | %% |
| 35 | |
| 36 | ==== attach ==== |
| 37 | |
| 38 | %%(bash) |
| 39 | $ tmux attach -t ebal |
| 40 | %% |
| 41 | |
| 42 | === attach / detach === |
| 43 | |
| 44 | %% |
| 45 | tmux new -s session_name |
| 46 | creates a new tmux session named session_name |
| 47 | tmux attach -t session_name |
| … | … |
| 52 | lists existing tmux sessions |
| 53 | tmux detach (prefix + d) |
| 54 | detach the currently attached session |
| 55 | |
| 56 | |
| 57 | === ReadOnly attach session === |
| 58 | |
| 59 | %% |
| 60 | $ tmux attach -t session_ebal -r |
| 61 | %% |
| 62 | |
| 63 | === synchronize panes === |
| 64 | |
| … | … |
| 71 | %% |
| 72 | :setw synchronize-panes off |
| 73 | %% |
| 74 | |
| 75 | === Capture Pane === |
| 76 | |
| 77 | %% |
| 78 | ctrl+prefix a : capture-pane -S [lines] |
| 79 | %% |
| 80 | |
| 81 | will save the tmux pane into a buffer |
| 82 | |
| 83 | and after that |
| 84 | |
| 85 | %% |
| 86 | ctrl+prefix a : save-buffer /tmp/output |
| 87 | %% |
| 88 | |
| 89 | to save the buffer into a text file named output under /tmp directory |
| 90 | |
| 91 | |
| 92 | === equally balance panes === |
| 93 | |