Skip to content

Instantly share code, notes, and snippets.

@akiniwa
Last active December 30, 2015 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akiniwa/7817390 to your computer and use it in GitHub Desktop.
Save akiniwa/7817390 to your computer and use it in GitHub Desktop.

tmuxのコマンド、ショートカット

コマンドラインでの操作(tmux起動前)

sessionスタート

tmux

sessionの一覧表示

tmux ls

名前をつけてsessionスタート

tmux new -s myname

tmuxを再開

tmux a #

tmuxを名前を指定して再開

tmux a -t myname

sessionの破棄

tmux kill-session -t myname

==============

tmux起動中

プレフィックス後に入力するコマンド。プレフィックスはデフォルトでcontrol+b

session操作

:new<CR>  新規session
s  sessionの一覧
$  sessionの名前変更
d  sessionから離脱(デタッチ)
:  コマンドプロンプト
?  ヘルプ

window操作

c  新規window
w  windowsの一覧
f  windowの検索
,  windowの名前変更
&  windowの破棄
n  次のwindowへ移動
p  前のwindowへ移動

pane操作

%  たて分割
"  よこ分割
o  ペイン切り替え
q  ペイン番号表示
x  ペインの破棄
t  時計
: resize-pane -U ペインのリサイズ(上)
: resize-pane -D ペインのリサイズ(下)
: resize-pane -L ペインのリサイズ(左)
: resize-pane -R ペインのリサイズ(右)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment