📖 Book · linux · high
🐧 Linux for C++ Interviews: tracing a live process
From 'my app stopped getting data' to the exact command that finds where it's lost
The command-line skills C++ interviewers actually probe, built around one scenario: a service that stops receiving data. Walk the receive path — wire, NIC, kernel queue, socket buffer, app read — and learn the command and the counter at each layer (tcpdump, ss/netstat, ethtool, lsof, strace, /proc), plus signals and log mining. Each command is paired with a runnable C++ program that exercises the same syscall.
8 chapters▶ runnable code✦ in-depth animation
▶ See it animated:Track a Running Process — What Is PID 1234 Doing? →Inspect Sockets — ss, netstat, Connection States & Queues →Is the Data on the Wire? — tcpdump Capture & Filters →Who Owns This Port / FD? — lsof & /proc/PID/fd →Processes & Signals — ps, kill, jobs, systemctl →Text Processing — grep, awk, sed, pipes & xargs →Debugging: Service Isn't Receiving Data — Trace the Receive Path →
What this book covers
- 01Why this matters: 'my app stopped getting data'
- 02Tracking a live process
- 03Is the data even arriving?
- 04Reading sockets with ss
- 05Capturing packets with tcpdump
- 06Ports, descriptors & leaks (lsof)
- 07The everyday toolkit: signals & text
- 08One-page command cheat-sheet
Read it in full — runnable C++ + step-through animations
Every chapter of Linux for C++ Interviews: tracing a live process ships complete, editable code you compile and run in the browser, plus the same in-depth animations as the lessons.