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
Section
22 articles
Practical, tested walkthroughs for getting useful work done on Linux.
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
Read a running process's initial environment from procfs, handle its null separators correctly, and avoid leaking secrets into terminals and tickets.
5 min read
Use systemd-analyze, critical-chain, unit properties, and the journal to find where boot time went without mistaking duration for causation.
5 min read
Use logrotate's debug mode with a copied configuration, then inspect state and service scheduling before forcing a production rotation.
5 min read
Find a crashed process, review its metadata, export the core safely, and open it in a debugger without losing track of the exact executable.
5 min read
Use ss to move from a port conflict to the exact listener, address, process, and file descriptor without guessing or killing the wrong service.
7 min read
Explain why the command you typed is not the executable you expected, then prove each resolution layer with portable and Bash-specific tools.
8 min read