Skip to content
onsuggest
Log in
Article zh

读:witr——从源码看 Linux 如何获取进程信息

Source: 暗无天日 ·

通过阅读 witr 项目的 Go 源码,逐一讲解 Linux /proc 文件系统中用于获取进程信息的各个文件:stat、cmdline、exe、environ、fd、cgroup、net/tcp 等。每段源码配有等价 shell 命令,可在终端直接复现。

Keyboard shortcuts

Previous discovery
←P
Next discovery
→N
Like
L
Not for me
X
Save
S
Show this help
?
Close
Esc

Shortcuts work on the discovery page.