Home

The Disk Space Detective Story - Plan

The Disk Space Detective Story - Plan

Genre & Style

Mystery/Detective Noir meets Hoarders meets CSI: Cyber

Story Arc

Act 1: The Case Arrives (Setup)

User's question: "How much disk space do we have?"

Act 2: The Investigation Begins (Rising Action)

Scene 1: "Follow the Money" - Top-Level Sweep

Commands: Multiple du commands in parallel

Scene 2: "Dig Deeper" - Following the Leads

Commands: Targeted du on suspicious directories

Scene 3: "The Usual Suspects" - Cache Investigation

Commands: Exploring .cache, .npm, checking journal logs

Scene 4: "The Snap Trap" - System Packages

Commands: Investigating /snap and /var/lib/snapd

Act 3: The Solution (Resolution)

Scene 5: "Building the Case" - The Report

Scene 6: "The Cleanup Plan" - Justice Served

Characters

Main Character: The Detective (Claude/AI)

The Suspects/Witnesses:

  1. Cache Family - Hoarders who mean well

    • Puppeteer Pete (keeps all browser versions)
    • Playwright Paula (same problem)
    • npm Nancy (saves everything "just in case")
  2. The Snap Gang - Old-timers who won't leave

    • GNOME Grandpa v42 (won't retire even though v46 is here)
    • Chromium Charlie (multiple versions)
  3. Log Larry - The journalist who records everything (154MB of journals)

  4. Temp Tim - The messy neighbor in /tmp (472MB)

  5. node_modules - The Red Herring

    • Everyone suspects them first!
    • But they're actually reasonable (only 697MB)
    • Teaching moment: Don't assume, investigate!

Key Teaching Moments (Educational Goals)

Command Concepts:

  1. df -h: High-level overview (human-readable sizes)
  2. du: Disk usage deep-dive (--max-depth, sorting)
  3. Parallel execution: Running multiple independent commands at once
  4. sort -hr: Organizing output (human-readable, reverse)
  5. head: Limiting output to useful amounts
  6. find: Searching for specific patterns
  7. sudo: When you need permissions (entering restricted areas)

Problem-Solving Process:

  1. Start broad → narrow down
  2. Run parallel searches when independent
  3. Sort and filter to find signal in noise
  4. Verify before acting (check sizes, safety)
  5. Document findings (make a plan)

System Knowledge:

  1. What are caches and why they exist
  2. Package managers keep old versions
  3. Logs accumulate over time
  4. Difference between /home, /var, /tmp, /snap
  5. What's safe to delete vs. risky

Creative Elements

Visual Metaphors:

Comedy Moments:

Narrative Devices:

Story Flow Structure

Question → Initial Survey → "The scene" → Parallel Investigation
    ↓
Discovery of Big 3 → "The main leads"
    ↓
Deep Dive each lead → "Interrogation"
    ↓
Find specific culprits → "The guilty parties"
    ↓
Verify and document → "Build the case"
    ↓
Present solution → "Justice served"

Tone Notes

Target Audience Adaptations

For CS students who:

READ i