6 ms·
Do you have any resources about /proc you'd recommend?
by core_dumped 6y ago
Do you have any resources about /proc you'd recommend?
- nick0garvey 6y ago`man proc' is quite good. https://man7.org/linux/man-pages/man5/proc.5.html https://man7.org/linux/man-pages/man5/proc.5.html /proc is Linux specific, but it's extremely useful. A lot of tools are actually built on top of it, for example ps. ngarvey@cheapo:~$ strace ps aux |& grep cmdline | head openat(AT_FDCWD, "/proc/1/cmdline", O_RDONLY) = 6 openat(AT_FDCWD, "/proc/2/cmdline", O_RDONLY) = 6 openat(AT_FDCWD, "/proc/3/cmdline", O_RDONLY) = 6 openat(AT_FDCWD, "/proc/4/cmdline", O_RDONLY) = 6 openat(AT_FDCWD, "/proc/9/cmdline", O_RDONLY) = 6 openat(AT_FDCWD, "/proc/10/cmdline", O_RDONLY) = 6 openat(AT_FDCWD, "/proc/11/cmdline", O_RDONLY) = 6 openat(AT_FDCWD, "/proc/12/cmdline", O_RDONLY) = 6 openat(AT_FDCWD, "/proc/13/cmdline", O_RDONLY) = 6 openat(AT_FDCWD, "/proc/14/cmdline", O_RDONLY) = 6
- pjmlp 6y agoActually it was copied from Solaris, https://docs.oracle.com/cd/E19253-01/816-5174/proc-4/index.html https://docs.oracle.com/cd/E19253-01/816-5174/proc-4/index.h...