Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Do you have any resources about /proc you'd recommend?


`man proc' is quite good. 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





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: