Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
新入生向けチュートリアル:tmux
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Taichi Aida
July 05, 2021
Technology
470
0
Share
新入生向けチュートリアル:tmux
2021/07/19 新入生向けチュートリアル
Taichi Aida
July 05, 2021
More Decks by Taichi Aida
See All by Taichi Aida
意味を表すベクトル表現を用いたテキスト分析
a1da4
0
120
スウェーデン滞在報告
a1da4
0
26
PhD Defence: Considering Temporal and Contextual Information for Lexical Semantic Change Detection
a1da4
1
290
文献紹介:A Multidimensional Framework for Evaluating Lexical Semantic Change with Social Science Applications
a1da4
1
380
YANS2024:目指せ国際会議!「ネットワーキングの極意(国際会議編)」
a1da4
0
310
言語処理学会30周年記念事業留学支援交流会@YANS2024:「学生のための短期留学」
a1da4
1
440
新入生向けチュートリアル:文献のサーベイv2
a1da4
16
12k
文献紹介:Isotropic Representation Can Improve Zero-Shot Cross-Lingual Transfer on Multilingual Language Models
a1da4
0
230
文献紹介:WhitenedCSE: Whitening-based Contrastive Learning of Sentence Embeddings
a1da4
1
380
Other Decks in Technology
See All in Technology
プラットフォームエンジニアリングの実践 - AWS コンテナサービスで構築する社内プラットフォーム / AWS Containers Platform Meetup #1
literalice
1
230
需要創出(Chatwork)×供給(BPaaS) フライホイールとMoat 実行能力の最適配置とAI戦略
kubell_hr
0
1.6k
The 7 pitfalls of AI
ufried
0
150
AI活用時代の事業判断高度化を導くエンジニアリング基盤 / 20260424 Atsushi Funahashi
shift_evolve
PRO
2
110
コードや知識を組み込む / Incorporate Code and Knowledge
ks91
PRO
0
190
もっとコンテンツをよく構造化して理解したいので、LLM 時代こそ Taxonomy の設計品質に目を向けたい〜!
morinota
0
100
Modernizing Your HCL Connections Experience: Visual Report to chain, Profile Enhancements, and AI Integration
wannesrams
0
240
AWS Agent Registry の基礎・概要を理解する/aws-agent-registry-intro
ren8k
3
430
AWS Transform CustomでIaCコードを自由自在に変換しよう
duelist2020jp
0
220
Shipping AI Agents — Lessons from Production
vvatanabe
0
300
国内外の生成AIセキュリティの最新動向 & AIガードレール製品「chakoshi」のご紹介 / Latest Trends in Generative AI Security (Domestic & International) & Introduction to AI Guardrail Product "chakoshi"
nttcom
4
1.6k
バイブコーディングで3倍早く⚪⚪を作ってみた
samakada
0
200
Featured
See All Featured
Making the Leap to Tech Lead
cromwellryan
135
9.8k
Between Models and Reality
mayunak
3
270
Facilitating Awesome Meetings
lara
57
6.8k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
760
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
170
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
170
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
The Invisible Side of Design
smashingmag
303
52k
Paper Plane
katiecoart
PRO
1
49k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
680
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