I like this little book, in very small amount of space it teaches you how to build a bare bones OS, from there you can start doing your own experiments which I think is the best way to really learn something:
https://littleosbook.github.io/
It's good to not only know operating systems in general, but also to understand some of the internals of the operating system you are actually using. For Linux, this is good: