📖 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

What this book covers

  1. 01Why this matters: 'my app stopped getting data'
  2. 02Tracking a live process
  3. 03Is the data even arriving?
  4. 04Reading sockets with ss
  5. 05Capturing packets with tcpdump
  6. 06Ports, descriptors & leaks (lsof)
  7. 07The everyday toolkit: signals & text
  8. 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.

Linux for C++ Interviews: tracing a live process — C++ Deep-Dive Book (runnable code + animation) · C++ Interview Prep