Difference between revisions for tmux





Next edit →

Version1 Version2 Differences
13 13
14 14 %%
15 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 %%  
16 41
17 42 === attach / detach ===
18 43
19   %%
  44 %%(bash)
20 45 tmux new -s session_name
21 46     creates a new tmux session named session_name
22 47 tmux attach -t session_name
… … …
27 52     lists existing tmux sessions
28 53 tmux detach (prefix + d)
29 54     detach the currently attached session
30       %%
  55 %%
31 56
32 57 === ReadOnly attach session ===
33 58
34 59 %%
35 60 $ tmux attach -t session_ebal -r
36 61 %%
37    
38    
39 62
40 63 === synchronize panes ===
41 64
… … …
48 71 %%
49 72 :setw synchronize-panes off
50 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  
51 91
52 92 === equally balance panes ===
53 93