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
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
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
Map device names to filesystem UUIDs, partition UUIDs, labels, types, and mountpoints before editing storage configuration or replacing a disk.
4 min read
Separate clock display, synchronization state, source health, and service ownership when a Linux host reports the wrong time.
4 min read
Move through nftables families, tables, base chains, hooks, priorities, policies, matches, counters, and verdicts before proposing a firewall change.
5 min read
Inspect a running process's soft and hard limits, compare them with the launching shell or service, and reproduce a limit in a disposable child.
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
Use SHA-256 to catch changed bytes, an OpenPGP signature to bind bytes to a key, and an independently checked fingerprint to establish trust.
7 min read
Parse calendar expressions, validate the timer and service as a pair, understand persistence and jitter, then enable only the unit you reviewed.
7 min read
Map a process's descriptor numbers to files, pipes, and sockets, then read fdinfo without consuming data or confusing a descriptor with a path.
7 min read
On 31 August, Kernel.org listed Linux 7.2 as mainline and 7.2.2 plus 7.1.12 as stable; learn what those lanes mean before changing a distribution kernel.
9 min read
Ubuntu 26.04 LTS is out; its new release-note structure separates the two-year LTS jump from the smaller 25.10 upgrade.
10 min read
Fedora 44 shipped on 28 April 2026; inspect DNF5 integration, installer networking, toolchain changes, and the supported upgrade path.
8 min read
Use status, show, journalctl, unit dependencies, and a disposable user service to turn a failed unit into an exact exit reason.
10 min read
Generate an Ed25519 key in a disposable directory, compare public-key fingerprints, and install only the public half on a server.
9 min read
Separate application lookup policy, the local resolver, and direct DNS queries with getent, resolvectl, and dig.
9 min read
A controlled 11 MB repository shows the tools agree when scope matches, while their recursive defaults intentionally select different files.
10 min read
A local HTTP fixture exposes decisive differences in 404 exit codes, redirect following, output, retry policy, and protocol scope.
13 min read
Signals request process actions; a safe lab shows SIGTERM running cleanup with exit 0 while SIGKILL bypasses handlers and yields status 137.
10 min read
Namespaces change what processes can see; cgroups account for and limit resources. Inspect both without pretending a container is a tiny VM.
11 min read
Read Linux load average as a queue signal, separate runnable work from uninterruptible waits, and pair the three familiar numbers with CPU count and PSI.
15 min read
A practical command map for inspecting Linux first, then changing files, processes, storage, networking, logs, users, and packages with portability boundaries visible.
17 min read
A measured baseline for two current Linux server images, comparing size, libc, packages, service model, documentation, maintenance, and workload fit.
12 min read
Follow ls -la from a terminal keystroke through shell parsing, command lookup, process replacement, filesystem calls, and pixels on screen.
13 min read
Stop memorizing 755. Read owner, group, and other permissions as answers to concrete file and directory operations.
13 min read
Replace the punctuation model of `|` with connected processes, file descriptors, bounded kernel buffers, and backpressure.
14 min read
Reconcile filesystem allocation with files a directory walk can reach, then diagnose gaps without reaching for a cleanup command.
14 min read
Read RAM as anonymous memory, reclaimable cache, kernel state, swap, and pressure—then separate host capacity from cgroup limits.
14 min read
Build a reliable journalctl workflow by separating boot selection, unit filters, time windows, priority, and persistent storage.
12 min read
Keep everyday automation portable by treating the shell as a language boundary, checking tools explicitly, and testing the unhappy path.
9 min read
Keep the useful bits