Re:The Linux kernel can spawn processes on its own
by woodruffw on Sunday June 12, 2022 @01:31AM
(#31711716)
TIL about the `.N` suffix. I've always done `man N page`!
Re:The Linux kernel can spawn processes on its own
by 5e92cb50239222b on Sunday June 12, 2022 @01:37AM
(#31711750)
I don't think it's very portable, actually. It doesn't work on any of the BSDs or OpenSolaris forks IIRC. A yet another alternative spelling `man 'select(2)'` should work everywhere, but many shells require you to escape parentheses (or put them in quotes as above), so I don't find it very useful.
For example, `man 2 select` (or `man select.2`) gives you information about the `select` syscall, and `man 3 select` has information on the libc wrapper around that syscall.
A somewhat better example might be time: `time.1` has info on the command use to calculate running time of another command (in statements like `time make -j`, and `time.7` — low-level information on how to interact with kernel's time-related functionality. Since both are named `time`, if you just use `man time` without the number, you get the first one (and no way to get to the second).
Read `man man`, it has a lot more on this stuff.