ユーザ用ツール

サイト用ツール


serverapps:tmux

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
serverapps:tmux [2018/03/10 18:00]
hayashi [新規セッション]
serverapps:tmux [2023/08/20 20:17] (現在)
hayashi [複数のペインに対して同時にコマンドを実行]
行 1: 行 1:
 ====== tmux ====== ====== tmux ======
  
-prefixのdefault:ctrl+b+prefix のdefault:ctrl+b
 ===== install ===== ===== install =====
  
行 28: 行 28:
   < Prefix > + $   < Prefix > + $
  
 +==== セッションの削除 ====
 +
 +  tmux kill-session     
 +  tmux kill-session -t (session名)
 +  tmux kill-server      # 全部kill
 +
 +==== セッションの一覧選択 ====
 +
 +  < Prefix > + s
 ===== ウィンドウ ===== ===== ウィンドウ =====
  
 ==== 新規ウィンドウ ==== ==== 新規ウィンドウ ====
  
-  prefix -> c+  < Prefix > -> c
  
 ==== ウィンドウの切り替え ==== ==== ウィンドウの切り替え ====
  
-  prefix -> ウィンドウ番号+  < Prefix > -> ウィンドウ番号
  
 ==== ウィンドウ一覧 ==== ==== ウィンドウ一覧 ====
  
-  prefix -> w+  < Prefix > -> w
  
 ==== ウィンドウ削除 ==== ==== ウィンドウ削除 ====
  
-  prefix -> &+  < Prefix > -> &
  
 ==== ウィンドウの名前付け ==== ==== ウィンドウの名前付け ====
  
-  prefix -> ,+  < Prefix > -> ,
  
 ===== ペイン ===== ===== ペイン =====
 ==== 水平分割 ==== ==== 水平分割 ====
  
-  prefix -> "+  < Prefix > -> "
  
 ==== 垂直分割 ==== ==== 垂直分割 ====
  
-  prefix -> %+  < Prefix > -> %
  
 ==== 移動 ==== ==== 移動 ====
  
-  prefix -> o+  < Prefix > -> o
   or   or
-  prefix -> q +  < Prefix > -> q 
-  prefix -> q -> インジケータ番号+  < Prefix > -> q -> インジケータ番号
  
 ==== 分割解除 ==== ==== 分割解除 ====
 現在いるペインが消える 現在いるペインが消える
  
-  prefix -> x+  < Prefix > -> x 
 +==== サイズ変更 ==== 
 +  < Prefix > -> Space ペインレイアウトの変更((思い通りになるまで連打))
  
 +
 +==== 複数のペインに対して同時にコマンドを実行 ====
 +ON
 +  < Prefix > -> :set-window-option synchronize-panes on -> Enter
 +OFF
 +  < Prefix > -> :set-window-option synchronize-panes off -> Enter
 +
 +< Prefix > -> a にバインド
 +.tmux.conf
 +
 +  bind a setw synchronize-panes \; display "synchronize-panes #{?pane_synchronized,on,off}"
 +
 +=== 参考 ===
 +
 +  * [[https://qiita.com/waieneiaw/items/22ed18809739c9a69f25|tmuxのsynchronize-panesをtoggle化する方法]]
 ===== スクロール ===== ===== スクロール =====
  
-  prefix -> [+  < Prefix > -> [
 これで、スクロールモード これで、スクロールモード
   PgUp、PgDnまたは矢印で移動   PgUp、PgDnまたは矢印で移動
行 79: 行 105:
 抜ける時は 抜ける時は
   q   q
 +  
 +===== 日本語 =====
 +日本語であるべきところがアンダースコア(_)になっていて表示されないときは、tmuxをutf8モードで起動
 +
 +  $ tmux -u 
 +
 +===== 参考 =====
 +
 +  * [[https://qiita.com/nmrmsys/items/03f97f5eabec18a3a18b|tmuxチートシート]]
 +  * [[https://gihyo.jp/admin/serial/01/ubuntu-recipe/0127?page=1|ターミナルマルチプレクサ tmuxを使ってみよう]]
 +  * [[https://gihyo.jp/admin/serial/01/ubuntu-recipe/0292?page=1|.tmux.confの設定をしてみよう]]
 +  * [[https://mynavi-agent.jp/it/geekroid/2017/03/-11tmux.html]]
 +
serverapps/tmux.1520672406.txt.gz · 最終更新: 2018/03/10 18:00 by hayashi