linuxlab.io
Tutorials▾
  • Linux & networking
    File system, processes, TCP/IP, BGP and OSPF
    →
  • Terraform & IaC
    HCL, state, plan/apply on a LocalStack sandbox
    →
  • Git & GitHub
    Object model, plumbing, branching, GitHub Actions
    →
All tutorials →
PricingAboutSign inCreate account
/
  • Introduction
  • Lessons
  • How it works
  • Simulator
  • Knowledge base
  • Interview prep
Lessons
Footer
linuxlab-TutorialsPricingAboutPrivacy & cookies
Copyright © 2026 LinuxLab. All rights reserved.

← из прошлого урока

You worked the network from the outside: routing, NAT, firewall. Now we turn the lens inward, to the process itself. Next come /proc, lsof, strace: three tools for "what is happening in your hands right now."

← к прошлому уроку

Средний

Debugging with /proc, lsof, and strace

15 мин · урок входит в курс «Средний»

When a service does not respond to signals or eats memory, ps and top do not show what exactly process-and-pid is doing right now. For that there is /proc/<pid>/* (a virtual FS with everything the kernel knows about a process), lsof (what the process has open), and strace (which syscalls it makes in real time).

strace needs the SYS_PTRACE capability, and it is already enabled in this sandbox.

Урок закрыт

Чтобы запустить sandbox и пройти этот урок целиком, нужен соответствующий курс. Внутри - ещё много практических уроков того же уровня и сквозной прогресс.

Купить курсВойти← Все уроки

дальше →

You can dissect a process now. The neighboring pain in production is "the disk is full." Next: df/du, the classic trick with a deleted-but-open file, and why du sometimes disagrees with df.

Открыть превью: Disk space: df, du, and where it wentв курсе «Средний» - /pricing
Footer
linuxlab-
Copyright © 2026 LinuxLab. All rights reserved.
Tutorials
Pricing
About
Privacy & cookies