Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
新入生向けチュートリアル:tmux
Search
Taichi Aida
July 05, 2021
Technology
540
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
新入生向けチュートリアル:tmux
2021/07/19 新入生向けチュートリアル
Taichi Aida
July 05, 2021
More Decks by Taichi Aida
See All by Taichi Aida
意味を表すベクトル表現を用いたテキスト分析
a1da4
0
180
スウェーデン滞在報告
a1da4
0
54
PhD Defence: Considering Temporal and Contextual Information for Lexical Semantic Change Detection
a1da4
1
350
文献紹介:A Multidimensional Framework for Evaluating Lexical Semantic Change with Social Science Applications
a1da4
1
440
YANS2024:目指せ国際会議!「ネットワーキングの極意(国際会議編)」
a1da4
0
370
言語処理学会30周年記念事業留学支援交流会@YANS2024:「学生のための短期留学」
a1da4
1
490
新入生向けチュートリアル:文献のサーベイv2
a1da4
19
13k
文献紹介:Isotropic Representation Can Improve Zero-Shot Cross-Lingual Transfer on Multilingual Language Models
a1da4
0
280
文献紹介:WhitenedCSE: Whitening-based Contrastive Learning of Sentence Embeddings
a1da4
1
430
Other Decks in Technology
See All in Technology
re:Inventで、人生は変わったのか? / growth-builders-hub-1-reinvent-2026
mhrtech
2
200
Systems Manager AgentがインストールされたPCを紛失した時の対策を考えてみた
amarelo_n24
1
110
AIで選択肢が広がった組織設計の理想と現実
konifar
16
7.5k
複雑な業務システムを高速でつくるため、チーム全員をつくれる人へ
ayakurabuchi
0
120
Adversary Infrastructure Hunting101
disconinja
0
190
Don't write the architecture only in the prompt.
neohsu
0
300
cdk deployとcdkd deploy、実際にデプロイして5倍速近くの差を実測した
yama3133
1
160
増え続けるプロダクトの品質をどう担保するか。ProductSpecとTypeScriptによる取り組み
joere
3
340
「作れる」と「リリースできる」の間にあったもの── PdMを外して見えた、PdMがやるべき仕事/Buildable ≠ Shippable: What Removing the PM Taught Me About the PM’s Job
yappli_developers
0
430
2拠点SRE活動始めてみた | sogaoh's LT @ ホンマでっかSRE勉強会 #3
sogaoh
PRO
0
230
Consistency for mere mortals - A gentle guide to consistency
ufried
0
120
AIエージェント統制はAPIから——押さえるべき5つの要素
nagix
0
120
Featured
See All Featured
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1.1k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
290
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
350
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
350
Tell your own story through comics
letsgokoyo
1
1.1k
4 Signs Your Business is Dying
shpigford
187
23k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
The Cost Of JavaScript in 2023
addyosmani
55
10k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
650
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
290
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