Re:Ask HN: How to learn about Linux system internals?
by brudgers on Wednesday April 07, 2021 @01:06PM
(#26727707)
To me, the place to start is Bach's Design of the Unix Operating System because provides the right context for Advanced Programming in the Unix Environment. Advanced Programming sort of presumes familiarity with its concepts and reading it first is probably faster than not reading it first. YMMV.
Of course there are implementation differences between Unix and Linux, but I wouldn't be surprised if Torvaldes wasn't reading Bach when he started.
Re:Ask HN: How to learn about Linux system internals?
by dyingkneepad on Wednesday April 07, 2021 @04:04PM
(#26730424)
You may be right. I didn't read the book you mention, and when I used APUE I was already very familiar with the Unix world, so I used it mostly as a reference, a way to learn what was not exactly in the man pages.
Re:Ask HN: How to learn about Linux system internals?
by brudgers on Thursday April 08, 2021 @08:40AM
(#26737978)
It is very well written. A technical book. Not a textbook. Well written in the way Bell Labs could produce to bring its cadre of technical staff up to speed...written to create competence not differentiate for the purpose of assigning grades.
You can probably find a pdf online or a used copy from a bookseller.
In the first case, I'd suggest trying to write a daemon that opens a socket and/or a fifo or pipe, sends some data, forks, execs, reacts to SIGUSR2, gets started by systemd, etc.
In the second case, implement a /dev/reversestring or whatever. Perhaps make your daemon use it :).
https://lwn.net/Kernel/LDD3/