F/OSS Comics

17. Lions' Commentary on Unix

Posted on Nov 25, 2026

Lions' Commentary on Unix

Two students study source code beside a terminal, with a 1980 calendar on the wall.

John Lions was teaching operating systems at the University of New South Wales in Australia.

What's the best way to
teach operating systems?

They need to study the Unix source.
But it's tough going.

I'll write my
own textbook.

In May 1976, Lions prepared lecture notes explaining the kernel source code of AT&T's Unix Version 6. These became his Unix commentary.

To understand an OS,
we need to read
the actual code.

I've written a guide
to the Unix kernel.
We'll use it as
our textbook.

By 1977, the notes were circulating among other schools and research institutions with Unix licenses [1][4]. Even Bell Labs wanted copies and eventually took over distribution [2].

Three readers pore over orange copies of the Unix commentary.

Early on, Unix source could be studied in class. But at USENIX in June 1979, AT&T announced new Version 7 license terms restricting courses that disclosed or discussed source code. Distribution of Lions' book was tightly controlled as well [5][6].

I am altering the license.
Pray I don't alter it
any further.

Destroy Lions' book.
No more teaching
Unix source code.

There is no escape
from our operating system.

Armored soldiers raid a Unix class while someone by the window urges the students to run.

He's teaching from the Unix source code!
Seize the books!
Run!

He's got the book!

Don't let him
escape!

Quick! Take
the book!

An armored soldier fires at the fleeing student.
The student twists as a shot hits him, still clutching the book.

Ugh!

I find your interest
in source code disturbing.

Just use the system calls.
Learn a little theory.
Leave the internals to us.

Theory isn't enough.
I need to see the code.

This code is our only hope
of understanding an OS.

For roughly twenty years before the official edition appeared, computer-science students studied from unauthorized photocopies. The book helped a generation of students learn to build operating systems of their own [5][8].

A student studies the commentary beside a computer.

Meanwhile, members of the Unix community, including Peter H. Salus, Dennis Ritchie and Berny Goodheart, kept asking AT&T, Novell and the Santa Cruz Operation for permission to publish the book. SCO finally agreed. Peer-to-Peer Communications published the official edition in 1996 [5][7].

Dennis Ritchie and Ken Thompson

Lions' book is finally
in print. It even has
my foreword.

People were secretly copying it
for twenty years?
Unbelievable.

The cover of Lions' Commentary on UNIX 6th Edition, with Source Code, including Ritchie's foreword.

The officially published edition.

You can read a reconstructed version of the commentary as a PDF, or order a print copy on Amazon. The Unix Version 6 source code is available separately from TUHS.

References

  1. Lions' Commentary on UNIX 6th Edition, with Source Code
  2. John Lions, Lions' Commentary on UNIX 6th Edition, with Source Code, Peer-to-Peer Communications, 1996 (ISBN 1-57398-013-7).
  3. System call
  4. UNIX News, Vol. 2 No. 3, March 1977 - John Lions's March 11, 1977 letter and the announcement of book distribution to Unix licensees.
  5. Rachel Chalmers, "Code critic", Salon, November 30, 1999 - recollections from students and Dennis Ritchie, distribution restrictions, and the path to publication.
  6. Peter H. Salus, The Daemon, the GNU and the Penguin, Chapter 6: "1979", 2005 - the Version 7 license terms announced at USENIX in June 1979 and restrictions on classroom use.
  7. Dennis Ritchie's October 22, 1995 letter and Peter H. Salus's July 12, 1996 letter - publication-permission correspondence preserved by Warren Toomey.
  8. MIT, "Xv6, a simple Unix-like teaching operating system", "History and Background" - teaching with Lions's commentary and the background to xv6.