strace Cheatsheet

Power user.

Overview

strace traces system calls and signals for any Linux process. When other tools say “the process is broken,” strace says exactly which syscall failed and why. Five primitive operations cover almost every investigative use case.

The approach

Three habits separate fluent strace from beginner strace: filter aggressively by syscall class, attach to running PIDs rather than starting new ones, and summarise with -c for performance work.

Why this compounds

strace fluency compounds because the same toolkit serves every Linux process the team operates. The patterns transfer to ltrace, perf trace, and modern eBPF-based tools.