Also, I can never recommend Computer Systems: A Programmer's Perspective[1] enough. (Also features a rare mistakes in an exercise or two, but that's detail.)
And for network protocols, Comer's Internetworking with TCP/IP[3] was just great (you only need volume 1). I've read Stevens' books on socket and IPC programming in Unix, but didn't like them, so I also stayed away from TCP/IP Illustrated, but others have different opinions.
[1]: <https://www-cs-faculty.stanford.edu/~knuth/taocp.html>
[2]: <https://www.csapp.cs.cmu.edu/>
[3]: <https://www.pearson.com/us/higher-education/program/Comer-In...>