Linux//Origins

era 01 / 051969 — 1990

Before Linux

Linux did not appear from nowhere. It arrived in a gap that had been widening for twenty years: Unix had proved the design, GNU had built almost the whole system, MINIX had taught the students — and none of them had produced a kernel anyone could freely share.

Unix: the shape of the thing

In 1969, at Bell Labs in New Jersey, Ken Thompson and Dennis Ritchie started building an operating system for a discarded minicomputer. They had no grand plan. They wanted a comfortable environment for writing programs, after the failure of the larger Multics project they had contributed to.

What they produced became the template for almost everything since. Its convictions are worth stating plainly, because Linux inherited all of them:

  • One job per program. ls lists, grep searches, wc counts. You combine them instead of asking one program to do everything.
  • Everything is a file. Devices, pipes and directories are read and written through the same calls as ordinary documents. That single abstraction is why cat /proc/version works.
  • A single tree. One filesystem rooted at /, with other disks mounted into it. There are no drive letters.
  • Text as an interface. Tools read lines and write lines, so any tool can talk to any other.

In 1973 the system was rewritten in C — a language Ritchie had created partly for the purpose — which made it portable. That decision mattered more than any feature: an operating system could now be moved to new hardware by recompiling it.

Unix spread to universities, where Berkeley's version (BSD) added virtual memory and TCP/IP. But AT&T held the licence and charged for it, and the source was not something you could share, modify and redistribute. The ideas were free; the code was not.

why it matters later

When you type a command in the Terminal Lab, the syntax you are using — options as -l, pipes, redirection with > — was designed before you were born. Linux is a Unix by behaviour, not by descent.

GNU: everything except the kernel

By 1983 the situation was absurd to Richard Stallman, then at MIT: the only way to have a working computer was to run software you were forbidden to study or change. In September he announced the GNU Project — a recursive acronym for "GNU's Not Unix" — with the goal of writing a complete, Unix-compatible system that users could run, copy, modify and distribute freely.

The method was to rewrite each piece from scratch and publish it under a licence that kept it free. The GPL, written in 1985 alongside the Free Software Foundation, used copyright to guarantee the opposite of the usual restriction: derivative works had to remain open.

And it worked, piece by piece:

  • Emacs (1985) — an editor that became an environment.
  • GCC (1987) — a compiler good enough that the world adopted it.
  • Bash (1989) — the shell you will use in this site's lab, a Bourne-shell replacement.
  • coreutils, make, gdb, the C library — the quiet plumbing of a Unix system.

By 1990, GNU had produced a complete userland — every program a Unix needs to be useful — and was still missing its own kernel. The GNU Hurd, designed as a microkernel with servers running above it, was ambitious and late. The project that had replaced everything else had one empty slot left, and it had been empty for years.

MINIX: the teaching kernel

In 1987 Andrew Tanenbaum, a professor in Amsterdam, released MINIX: a small Unix-like system written for the IBM PC, with its source code printed in a textbook. It was designed to teach operating systems, and it did that better than anything before it. Students could read every line.

Its licence, however, was not free in the GNU sense — the code came with the book and redistribution was restricted. So MINIX could teach you how a kernel worked, but it could not become the free kernel the world was missing.

One of those students was Linus Torvalds at the University of Helsinki. He wanted to understand the 386 properly, and MINIX's deliberate limitations — a small address space, no real multitasking for his purposes — got in the way. He started writing terminal-emulation code that grew into something else, and then posted about it.

the argument that followed

In 1992 Tanenbaum and Torvalds argued publicly on comp.os.minix about microkernels versus monolithic design. Tanenbaum predicted that Linux's single-address-space approach would not survive; Torvalds argued that practical performance beat theoretical purity. Three decades of shipping systems later, the argument is still not fully settled — but the pragmatic answer won the market. More on that debate →

What the gap looked like in 1991

Put the three threads together and the situation is almost geometric:

  • Unix supplied the design, and had shown it could run institutions.
  • GNU supplied the userland — compiler, shell, tools — under a licence that guaranteed openness.
  • MINIX supplied the teaching, and a generation of people who had read a kernel's source.
  • Nobody supplied a free kernel for ordinary PC hardware.

A 21-year-old in Helsinki filled that slot in a few months, largely because he had all three: a design to imitate, tools to build with, and source to learn from. That is the whole reason Linux exists, and it is why the next era starts with a newsgroup post rather than a company.