Chapter 1: Learning the Basics
Chapter Overview
Topics covered:
-
Installing tmux
-
Starting tmux
-
The Command Prefix
-
Detaching and Attaching Sessions
-
Working with Windows
-
Working with Panes
-
Working with Command Mode
Key Concepts
tmux Architecture
┌─────────────────────────────────────┐
│ tmux server │
│ (runs in background, persists) │
└─────────────────────────────────────┘
│
┌───────────────┼───────────────┐
▼ ▼ ▼
┌─────────┐ ┌─────────┐ ┌─────────┐
│ Session │ │ Session │ │ Session │
│ "dev" │ │ "ops" │ │ "notes" │
└─────────┘ └─────────┘ └─────────┘
│
┌──────────┼──────────┐
▼ ▼ ▼
┌────────┐ ┌────────┐ ┌────────┐
│ Window │ │ Window │ │ Window │
│ 1 │ │ 2 │ │ 3 │
└────────┘ └────────┘ └────────┘
│
┌────┴────┐
▼ ▼
┌──────┐ ┌──────┐
│ Pane │ │ Pane │
│ 1 │ │ 2 │
└──────┘ └──────┘
The Prefix Key
Default prefix: Ctrl+b
|
Write down what prefix you plan to use in your quantum config: Planned prefix: |
Commands Learned
| Command | Description | Keybinding |
|---|---|---|
| Command | Description | Keybinding |
|---|---|---|
| Command | Description | Keybinding |
|---|---|---|
Exercises
Exercise 1.1: Basic Session Management
-
Start a new tmux session named "practice"
-
Detach from it
-
List all sessions
-
Reattach to it
-
Kill the session
# Your commands:
Exercise 1.2: Window Navigation
-
Create 3 windows named: editor, shell, logs
-
Navigate between them using numbers
-
Navigate using next/previous
-
Rename a window
# Your commands:
Exercise 1.3: Pane Layouts
-
Split current window horizontally
-
Split one pane vertically
-
Navigate between panes
-
Resize a pane
-
Close a pane
# Your commands:
Notes
Write your observations, insights, and questions here as you read.
Config Ideas
Commands or settings from this chapter to include in quantum config:
# Ideas for dots-quantum/tmux/.config/tmux/tmux.conf
Chapter Completed
-
Read chapter
-
Completed exercises
-
Added commands to quick reference
-
Noted config ideas
Date completed: _