Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
新入生向けチュートリアル:tmux
Taichi Aida
July 05, 2021
Technology
0
78
新入生向けチュートリアル:tmux
2021/07/19 新入生向けチュートリアル
Taichi Aida
July 05, 2021
Tweet
Share
More Decks by Taichi Aida
See All by Taichi Aida
新入生向けチュートリアル:文献のサーベイ
a1da4
0
15
文献紹介:Temporal Attention for Language Models
a1da4
0
14
文献紹介:Dynamic Contextualized Word Embeddings
a1da4
2
160
文献紹介:Learning Lexical Subspaces in a Distributional Vector Space
a1da4
0
160
文献紹介:Unsupervised Word Polysemy Quantification with Multiresolution Grids of Contextual Embeddings
a1da4
0
22
文献紹介:Fake it Till You Make it: Self-Supervised Semantic Shifts for Monolingual Word Embedding Tasks
a1da4
1
36
文献紹介:Living Machines: A study of atypical animacy
a1da4
0
28
文献紹介:Sequential Modelling of the Evolution of Word Representations for Semantic Change Detection
a1da4
0
28
文献紹介:Simple, Interpretable and Stable Method for Detecting Words with Usage Change across Corpora
a1da4
0
54
Other Decks in Technology
See All in Technology
Autonomous Database Cloud 技術詳細 / adb-s_technical_detail_jp
oracle4engineer
PRO
10
18k
スクラムのスケールとチームトポロジー / Scaled Scrum and Team Topologies
daiksy
1
460
Custom AppをIP制限ありのままで審査に通す方法
yusuga
0
710
【基調講演】Internet of Everywhere 〜ひろがるデジタル・つなげるIoT〜/SORACOM Discovery 2022 day1
soracom
PRO
0
220
HoloLens2とMetaQuest2どちらも動くWebXRアプリをBabylon.jsで作る
iwaken71
0
220
【SAP知らない人向け】SAP on AWS 個人学習メモ/sap-on-aws-study
emiki
3
2.4k
MoT TechTalk #12 タクシーアプリ『GO』大規模トラフィックを捌く分析データ基盤の全容に迫る!
mot_techtalk
1
440
eBPF for Security Observability
lizrice
0
230
【toranoana.deno#7】Denoからwasmを呼び出す基礎
toranoana
0
140
FastConnect 冗長性のベスト・プラクティス
ocise
0
140
WinActorでの設定ファイルの取得方法について
tamai_63
0
150
OCI Service Mesh 概要 / OCI Service Mesh ovewview
oracle4engineer
PRO
0
110
Featured
See All Featured
Documentation Writing (for coders)
carmenhchung
48
2.6k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
181
15k
Build The Right Thing And Hit Your Dates
maggiecrowley
19
1.2k
A Modern Web Designer's Workflow
chriscoyier
689
180k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
236
1M
Rebuilding a faster, lazier Slack
samanthasiow
62
7.2k
The Brand Is Dead. Long Live the Brand.
mthomps
46
2.7k
A designer walks into a library…
pauljervisheath
196
16k
The Mythical Team-Month
searls
209
39k
Unsuck your backbone
ammeep
659
55k
Adopting Sorbet at Scale
ufuk
63
7.6k
Fontdeck: Realign not Redesign
paulrobertlloyd
73
4.1k
Transcript
tmux M2 相田太一 2021/07/19 新入生向けチュートリアル
こんな時、どうしますか? - ssh 切断後も処理を継続・再開したい → docker で良さそう… - ssh 接続先で複数の処理をしたい
→ tmux が便利 2
目的 - tmux について(ざっくりと)理解する - tmux とは - 基本的な操作 -
設定ファイル 3
tmux (terminal multiplexer) - ssh を切断しても端末の接続を保持 - docker も同様の機能 -
作業の中断・再開が可能 - 1つのウィンドウで複数端末にアクセス可能 - これが便利 4 端末1 端末2 端末3
基本的な操作 - 新規セッションの作成 - セッション内でのコマンド - 画面分割 - 新規ウィンドウ -
切断・再開 - セッションの一覧取得・削除 5
基本操作 新規セッションの作成 - $tmux new -s [NAME] で作成可能 - ここで作成したものをセッションという
6 test という セッションが作 成された
基本操作 セッション内でのコマンド - セッション内でコマンドを実行するには、prefix key を入力する(デフォルトは Ctrl-b) - 画面分割関係 -
Ctrl-b %:左右に分割 - Ctrl-b “:上下に分割 - Ctrl-b 矢印:移動 - Ctrl-b x:削除 7 各分割単位を ペインと呼ぶ pane 0 pane 1 pane 2
基本操作 セッション内でのコマンド - 新規ウィンドウも作成できる - Ctrl-b c:セッション内で新規ウィンドウを作成 - Ctrl-b [0-9]:セッション内のウィンドウを移動
- Ctrl-b &:ウィンドウの削除 8 ウィンドウが増 えている 現在地は *
画面分割の例 - 最近はこういう分割が多いです 9 ソースコード の編集 htop shell script 実行系
基本操作 セッションの切断・再開 - Ctrl-d:セッションから離脱(detach) - $tmux a (-t [NAME]) で再開(attach)
- detach 前の状況から再開できる - 処理なども裏で動いている 10
基本操作 セッションの一覧取得・削除 - $tmux ls でセッションの一覧を取得 - $tmux kill-session (-t
[NAME]) でセッションを 削除 - $tmux kill-server で tmux 全体を終了 11
設定ファイル - tmux も設定ファイル ~/.tmux.conf がある - 基本的なもの - $tmux
source ~/.tmux.conf:設定を反映 12 https://github.com/a1da4/dotfiles/blob/master/.tmux.conf ペイン切り替え・幅変更がマウ スでできて良い
まとめ - tmux は… - 切断しても端末の接続を保持 - 1つのウィンドウで複数端末にアクセス可能 - prefix
key+コマンド で以下の操作が可能 - 画面分割 - 新規ウィンドウ - デタッチ - 設定ファイルでカスタマイズも可能 - 公式 https://github.com/tmux/tmux/wiki/Getting-Started 13