Detective work
Combine your skills to dig into log files
⏱ Est. ~3 min
01 · Read
You've learned to read files, search text, chain commands, and count. Now combine those skills to crack a case: three days of app logs.
💡 Picture thisThis is your detective training — you've got clues (the log files) and tools (grep, cat, pipes). Time to solve the case.
Key points
- You'll combine cat, grep, and pipes to find answers
- Real situations often need several commands chained together
- Read the logs carefully — the answers are in the data
02 · Terminal exercise
Something went wrong on Wednesday. Let's start by finding the errors in that day's log. Use grep to find every line containing "ERROR" in the Wednesday log.
(This section is interactive — please enable JavaScript.)
03 · Terminal exercise
Engineers left some unfinished work in the code. Use grep to find the TODO comments they left behind in the source file.
(This section is interactive — please enable JavaScript.)
04 · Quiz
Based on the Wednesday log, why did the file upload fail?
- Disk was full
- Database was down
- User wasn't logged in
- The app crashed
Other lessons in this chapter
⚠ The full interactive experience needs JavaScript. Please enable it and reload.
※ This is an independent Traditional Chinese teaching project — not an official Anthropic product. Claude™ is a trademark of Anthropic, PBC.