Trace a Failing Linux Program with strace
Follow file, network, process, and signal system calls until a vague application error becomes a concrete errno and pathname.
7 min read
Archive
45 articles
Every story, newest first. Practical Linux coverage without filler.
Popular topics
Follow file, network, process, and signal system calls until a vague application error becomes a concrete errno and pathname.
7 min read
Handle spaces, quotes, newlines, empty matches, pruning, and expression precedence before a find command feeds another program.
6 min read
Use archive mode, trailing slashes, dry runs, itemized output, and deletion previews to turn an rsync command into a reviewable plan.
6 min read
Separate effective client configuration, DNS, TCP, host-key checks, authentication, and session startup without editing the server blindly.
6 min read
Use ip route get, policy rules, source selection, and network namespaces to explain one routing decision without sending a probe packet.
5 min read
Use openssl s_client and x509 to inspect a server certificate, verify its hostname, and check its expiration without guessing what the browser saw.
5 min read
Use findmnt to identify the filesystem behind a path, separate VFS options from filesystem options, and inspect mounts without parsing df output.
4 min read
A filesystem can reject new files while plenty of space remains. Compare block and inode usage, then find where file counts have grown.
5 min read
Use kernel logs, cgroup memory counters, and process evidence to distinguish a machine-wide out-of-memory event from a service limit.
5 min read
Resolve a process into the cgroup v2 hierarchy, then read CPU, memory, event, pressure, and effective CPU controls without changing them.
5 min read
Read file and process capabilities, decode their bitmasks, and understand why a service can perform privileged work without running as full root.
5 min read
When mode bits look correct but access still fails, use getfacl to inspect named users, group entries, masks, and inherited default ACLs.
5 min read