tmuxコマンド

2018/6/9

tmux - 端末(ターミナル)多重接続ソフトウェア

$ tmux  [オプション]  [tmuxのコマンド] <ENTER>
オプション 機能の説明
-2 tmuxを強制的にターミナルで256色表示させる
a
attach
デタッチしたセッションをアタッチする
ls
list-session
全てのセッションのリストを表示する
lscm
list-commands
new
new-session
新しいセッションを作成する
–help 使用法を出力して終了します。
-V バージョン情報を表示して終了する

オプション -2

$ tmux -2

オプション a, attach

$ tmux a

$ tmux attach

オプション new, new-session

$ tmux new

$ tmux new-session

$ tmux new -s session-name

オプション ls, list-session

$ tmux ls 

$ tmux list-session

オプション lscm, list-command

$ tmux lscm

$ tmux list-commands
attach-session (attach) [-dEr] [-c working-directory] [-t target-session]
bind-key (bind) [-cnr] [-t mode-table] [-R repeat-count] [-T key-table] key command [arguments]
break-pane (breakp) [-dP] [-F format] [-s src-pane] [-t dst-window]
capture-pane (capturep) [-aCeJpPq] [-b buffer-name] [-E end-line] [-S start-line][-t target-pane]
choose-buffer (capturep) [-aCeJpPq] [-b buffer-name] [-E end-line] [-S start-line][-t target-pane]
choose-client (capturep) [-aCeJpPq] [-b buffer-name] [-E end-line] [-S start-line][-t target-pane]
choose-session (capturep) [-aCeJpPq] [-b buffer-name] [-E end-line] [-S start-line][-t target-pane]
choose-tree (capturep) [-aCeJpPq] [-b buffer-name] [-E end-line] [-S start-line][-t target-pane]
choose-window (capturep) [-aCeJpPq] [-b buffer-name] [-E end-line] [-S start-line][-t target-pane]
clear-history (clearhist) [-t target-pane]
clock-mode (clearhist) [-t target-pane]
command-prompt (clearhist) [-t target-pane]
confirm-before (confirm) [-p prompt] [-t target-client] command
copy-mode (confirm) [-p prompt] [-t target-client] command
delete-buffer (deleteb) [-b buffer-name]
detach-client (detach) [-P] [-a] [-s target-session] [-t target-client]
display-message (display) [-p] [-c target-client] [-F format] [-t target-pane] [message]
display-panes (displayp) [-t target-client]
find-window (findw) [-CNT] [-F format] [-t target-window] match-string
has-session (has) [-t target-session]
if-shell (if) [-bF] [-t target-pane] shell-command command [command]
join-pane (joinp) [-bdhv] [-p percentage|-l size] [-s src-pane] [-t dst-pane]
kill-pane (killp) [-a] [-t target-pane]
kill-server (killp) [-a] [-t target-pane]
kill-session (killp) [-a] [-t target-pane]
kill-window (killw) [-a] [-t target-window]
last-pane (lastp) [-de] [-t target-window]
last-window (last) [-t target-session]
link-window (linkw) [-dk] [-s src-window] [-t dst-window]
list-buffers (lsb) [-F format]
list-clients (lsc) [-F format] [-t target-session]
list-commands (lscm) [-F format]
list-keys (lsk) [-t mode-table] [-T key-table]
list-panes (lsp) [-as] [-F format] [-t target-window]
list-sessions (ls) [-F format]
list-windows (lsw) [-a] [-F format] [-t target-session]
load-buffer (loadb) [-b buffer-name] path
lock-client (lockc) [-t target-client]
lock-server (lock) 
lock-session (locks) [-t target-session]
move-pane (movep) [-bdhv] [-p percentage|-l size] [-s src-pane] [-t dst-pane]
move-window (movew) [-dkr] [-s src-window] [-t dst-window]
new-session (new) [-AdDEP] [-c start-directory] [-F format] [-n window-name] [-s session-name] [-t target-session] [-x width] [-y height] [command]
new-window (neww) [-adkP] [-c start-directory] [-F format] [-n window-name] [-t target-window] [command]
next-layout (nextl) [-t target-window]
next-window (next) [-a] [-t target-session]
paste-buffer (pasteb) [-dpr] [-s separator] [-b buffer-name] [-t target-pane]
pipe-pane (pipep) [-o] [-t target-pane] [command]
previous-layout (prevl) [-t target-window]
previous-window (prev) [-a] [-t target-session]
refresh-client (refresh) [-S] [-C size] [-t target-client]
rename-session (rename) [-t target-session] new-name
rename-window (renamew) [-t target-window] new-name
resize-pane (resizep) [-DLMRUZ] [-x width] [-y height] [-t target-pane] [adjustment]
respawn-pane (respawnp) [-k] [-t target-pane] [command]
respawn-window (respawnw) [-k] [-t target-window] [command]
rotate-window (rotatew) [-DU] [-t target-window]
run-shell (run) [-b] [-t target-pane] shell-command
save-buffer (saveb) [-a] [-b buffer-name] path
select-layout (selectl) [-nop] [-t target-window] [layout-name]
select-pane (selectp) [-DdegLlMmRU] [-P style] [-t target-pane]
select-window (selectw) [-lnpT] [-t target-window]
send-keys (send) [-lRM] [-t target-pane] key ...
send-prefix (send) [-lRM] [-t target-pane] key ...
server-info (info) 
set-buffer (setb) [-a] [-b buffer-name] [-n new-buffer-name] data
set-environment (setenv) [-gru] [-t target-session] name [value]
set-hook (setenv) [-gru] [-t target-session] name [value]
set-option (set) [-agosquw] [-t target-window] option [value]
set-window-option (setw) [-agoqu] [-t target-window] option [value]
show-buffer (showb) [-b buffer-name]
show-environment (showenv) [-gs] [-t target-session] [name]
show-hooks (showenv) [-gs] [-t target-session] [name]
show-messages (showmsgs) [-JT] [-t target-client]
show-options (show) [-gqsvw] [-t target-session|target-window] [option]
show-window-options (showw) [-gv] [-t target-window] [option]
source-file (source) [-q] path
split-window (splitw) [-bdfhvP] [-c start-directory] [-F format] [-p percentage|-l size] [-t target-pane] [command]
start-server (start) 
suspend-client (suspendc) [-t target-client]
swap-pane (swapp) [-dDU] [-s src-pane] [-t dst-pane]
swap-window (swapw) [-d] [-s src-window] [-t dst-window]
switch-client (switchc) [-Elnpr] [-c target-client] [-t target-session] [-T key-table]
unbind-key (unbind) [-acn] [-t mode-table] [-T key-table] key
unlink-window (unlinkw) [-k] [-t target-window]
wait-for (wait) [-L|-S|-U] channel

オプション -V

$ tmux -V
tmux 2.3