News for hackers. Stuff that matters.
Re:What Shell Am I Using? by nick0garvey on Sunday August 30, 2020 @08:00PM (#24327124)
`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
Re:What Shell Am I Using? by pjmlp on Monday August 31, 2020 @02:11AM (#24328911)