edo1z blog

プログラミングなどに関するブログです

tmuxの設定・使い方

cnetos6.5です。macです。

tmuxをインストールします。

$ yum install tmux

tmuxを使います。

tmux new -s {session-name}

よく使うコマンド

  • ウインドウ一覧表示: ctr+b w
  • ウインドウ作成: ctr + b の後に c
  • ウインドウ移動: ctr + b の後に nまたはp
  • 画面分割 縦: ctr+b の後に "
  • 画面分割 横: ctr+b の後に %
  • 画面分割解除: ctr+b !
  • 画面の移動: ctr+b o
  • 画面の終了: ctr+b x
  • デタッチ: ctr+b d
  • アタッチ: tmux a

設定ファイルの読み込み tmux -f ~/.tmux.conf

コピーモード ・tmux.confに下記を追記する

set-window-option -g mode-keys vi

・コピーモード開始 ctrl+b [

参考: tmuxのインストールと設定 よく使うコマンド/tmux tmux基本のコマンド tmuxのコピーモードを試してみる