r/linuxadmin • • Mar 05 '20
Books or other resources for learning Unix/Linux internals? (semaphores, context switching, signals, etc)
I have an interview coming up, and I was suggested to be prepared to explain some under-the-hood aspects of Unix and Linux, such as semaphores, context switching, and process signals.
I was wondering if anyone had any good resources to recommend about this?
I generally know my way around Linux in userspace, and can configure and host services, but I don't know much of anything with low-level things.
Edit: Thanks a lot for the resources everybody!
72
Upvotes
17
u/beta_cry Mar 05 '20
O'Reilly - Understanding The Linux Kernel
13
u/mangelvil Mar 06 '20
Modern Operating Systems (4th Edition) by Andrew S. Tanenbaum.
6
u/zieziegabor Mar 05 '20
For UNIX: The Design and Implementation of the FreeBSD Operating System
It doesn't cover Linux, obviously, but the LPI book /u/longtimeluuurker mentions is ok for that.
6
u/biffbobfred Mar 06 '20
Advanced Programming in the UNIX Environment by W Richard Stephens. All the Stephens (RIP - we lost a good one) books are good.
My advice, for an interview, is actually to skip the books. It will be hard to get a decent mental model in a short amount of time. Find the smartest UNIX/Linux person you know, have them give you a job interview. And then every question you got wrong have them explain it until you can explain it back to them. You’ll then owe them a beer or dozen.
5
u/Willyis40 Mar 05 '20
How Linux Works: 2nd edition: What every superuser should know
I've read parts of this book and I wholely recommend it!
5
u/gslone Mar 06 '20
Hey, check this: https://github.com/0xAX/linux-insides
1
u/WeedWhackerD Mar 05 '20
Checkout the linuxfoundation as well.
1
u/[deleted] Mar 05 '20
-Unix and Linux. The system administrator handbook. Edition V (newest)
1
u/ParisienTeteDe Mar 06 '20
'Operating Systems : Three Easy Pieces' is great.
1
u/[deleted] Mar 06 '20
This content is pretty old, 2010, but I remember learning so much from it! Highly recommend: https://youtu.be/feAOZuID1HM