Book

Lions' Commentary on UNIX 6th Edition

📖 Overview

Lions' Commentary on UNIX 6th Edition consists of two parts: the complete source code listing of the UNIX Version 6 kernel and extensive line-by-line commentary explaining its operation. The book was written in 1977 by John Lions, a computer science lecturer at the University of New South Wales. The commentary takes readers through the UNIX kernel's implementation, covering process management, the file system, memory allocation, and device handling. Due to AT&T's licensing restrictions at the time, the book could not be published commercially and was instead photocopied and distributed among universities and research institutions. For decades, computer science students and professionals passed around unofficial copies of what became known as the "Lions Book," making it an underground classic in operating systems education. The work was finally published officially in 1996, after the restrictive AT&T UNIX license terms had expired. The book represents a watershed moment in operating systems education, demonstrating how clear documentation and systematic analysis can make complex systems comprehensible. Its influence extends beyond UNIX to modern operating system design and teaching methods.

👀 Reviews

Readers value this book as a detailed walkthrough of the UNIX V6 kernel code, with many citing it as their introduction to operating system internals. Software engineers and programmers note that Lions' line-by-line commentary helps decode complex C code and kernel concepts. Liked: - Clear explanations of kernel mechanisms - Detailed source code annotations - Historical significance for UNIX development - Teaching value for OS fundamentals Disliked: - Dated material not relevant to modern systems - Dense technical content challenging for beginners - Some printing quality issues in newer editions - Limited availability before 1996 Ratings: Goodreads: 4.21/5 (56 ratings) Amazon: 4.4/5 (31 ratings) "The comments are precise and enlightening" - Amazon reviewer "This book taught me more about OS internals than my entire CS degree" - Goodreads review "Shows how elegant simple code can be" - HackerNews comment

📚 Similar books

Operating Systems: Design and Implementation by Andrew S. Tanenbaum, Albert S. Woodhull This book examines the MINIX operating system source code line by line, providing insight into OS fundamentals and implementation details.

The Design of the UNIX Operating System by Maurice J. Bach The text presents UNIX System V Release 2 internal algorithms and structures through detailed technical explanations of process management, I/O, memory management, and file systems.

The Linux Programming Interface by Michael Kerrisk This work covers the Linux system call interface and kernel behavior through source code examples and technical documentation.

Unix Network Programming by W. Richard Stevens The book dissects networking code implementation in Unix systems with examinations of sockets, IPC, and client-server architectures.

Advanced Programming in the UNIX Environment by W. Richard Stevens The text presents Unix system programming concepts through practical examples and source code analysis of standard Unix implementations.

🤔 Interesting facts

🦁 Originally published in 1977, this book became an underground classic, secretly photocopied by computer science students for nearly 20 years due to AT&T's licensing restrictions. 📚 The book contains the complete source code of Unix Version 6, along with Lions' detailed line-by-line commentary – making it one of the first works to thoroughly explain a complete operating system. 🎓 John Lions, an Australian computer scientist at the University of New South Wales, used this material to teach operating systems courses, establishing what many consider the first curriculum based on actual OS source code. 💻 Unix V6, the subject of Lions' commentary, ran in only 16KB of memory, making it a masterpiece of efficient programming that influenced operating system design for decades. 📖 The book was finally legally published in 1996, after years of pressure from the computing community. Dennis Ritchie, one of Unix's creators, wrote the foreword for the authorized edition.