OSTEP

Operating Systems: Three Easy Pieces teaches the basics of operating systems in an entertaining way. To dive deep you can work through the xv6 projects which I haven't done, yet.