Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
ja:端末多重接続ソフトウェア [2020/04/05 16:08] elf |
ja:端末多重接続ソフトウェア [2020/04/05 16:14] elf |
||
---|---|---|---|
Line 37: | Line 37: | ||
=== tmux === | === tmux === | ||
[[https://github.com/tmux/tmux]]はOpenBSDに標準搭載される端末多重接続ソフトウェア。GitHubで公開されている。 | [[https://github.com/tmux/tmux]]はOpenBSDに標準搭載される端末多重接続ソフトウェア。GitHubで公開されている。 | ||
+ | |||
+ | リモートログインした後で、次の一行を実行しておく。 | ||
+ | <code> | ||
+ | tmux | ||
+ | </code> | ||
+ | |||
+ | 接続が途切れて、再度リモートログインしなおした後で、次の一行を実行すると、途切れる前から、その後に状態遷移したところに再接続できる。 | ||
+ | <code> | ||
+ | tmux a | ||
+ | </code> | ||
+ | |||
+ | tmuxは一つのコンピュータ上で、複数回使用できる。 | ||
+ | 接続可能なセッションの一覧は、次の一行を実行すると表示される。 | ||
+ | <code> | ||
+ | tmux ls | ||
+ | </code> | ||
+ | |||
+ | 選んだセッションに再接続するには、次の一行を実行する。 | ||
+ | <code> | ||
+ | tmux a -t <対象セッション名> | ||
+ | </code> | ||
+ | |||
+ | 選んだセッションを終了するには、次の一行を入力する。 | ||
+ | <code> | ||
+ | tmux kill-session -t <対象セッション名> | ||
+ | </code> | ||