Pular para o conteúdo
← Back to Skalablog

Published article

Unix History: How One OS Led to MacOS and Android

Software Engineering

Unix began in 1969 as a small Bell Labs project by Ken Thompson and Dennis Ritchie, built on a PDP-7, then rewritten in C. That lineage reaches macOS and the iPhone through Darwin, and Android through Linux. The systems share architecture and code roots with Unix, not the Unix trademark.

Unix history: what Thompson and Ritchie built at Bell Labs

Unix history began because a 1965 time-sharing project called MIT, General Electric and Bell Labs built Multics as a shared operating system for one central machine, but development was slow and the code was complex. Bell Labs withdrew in 1969, and Ken Thompson started work on a smaller alternative.

Thompson's early system ran on a PDP-7 minicomputer, one of the leading machines in the United States at the time. His motive was partly practical and partly playful: he wanted a cheap way to run a space game he had written, Space Travel. The first set of components covered a kernel, an editor and an assembler. Researchers named it Uniplexed Information and Computing Service, shortened first to Unics and later to Unix.

The first version released outside the lab came in 1971 and ran on a PDP-11 with only 24 KB of memory, less than a current text document. It shipped with a kernel, a shell, and a suite of small utilities for file and process management, and was already faster and more objective than Multics.

One problem remained: it was written in assembly language, tied to a single machine family. That is where Dennis Ritchie enters the story.

How Dennis Ritchie's C language made Unix portable

Dennis Ritchie created the C programming language in 1973, and that made Unix portable in a way earlier systems were not. Before C, Unix was written in assembly, tied to the instruction set of one machine family. Thompson and Ritchie rewrote the system in C, so it could be compiled on any hardware that had a C compiler, far beyond the models in the lab.

The rewritten version reached an external conference in 1973 and was described in an academic paper by Thompson and Ritchie, published in 1974 under the title The UNIX Time-Sharing System in Communications of the ACM. The exact claim and date are recorded in the ACM Digital Library entry. That paper circulated through the research community and raised interest in the system.

Brian Kernighan, a Canadian researcher at Bell Labs, helped name and popularize the Unix philosophy through writing and teaching. Outside Bell Labs, source code went to universities and institutes at symbolic prices. AT&T, the owner of the lab, faced trade sanctions as a telecommunications monopoly, so it could not simply sell Unix as a proprietary product. Generations of programmers learned their craft on that code, and the sharing habit became one of the roots of free software. Thompson and Ritchie received the Turing Award in 1983 for their work. Ritchie died in October 2011; Thompson kept programming for years, including a stint at Google.

Which Unix design principles still shape modern systems

Unix design principles still shape modern systems because they favor small tools and a shared file model. The system relied on a kernel that connected hardware to programs, a command-line interface for navigation and control, and processes that ran at the same time. Everything inside the system was treated as a file, so documents and device settings used the same commands. A few principles stand out as testable design choices rather than slogans:

  1. A central kernel that connects hardware to programs, with smaller services built on top.
  2. A terminal interface with text-based navigation through directories.
  3. Multitasking, running processes simultaneously without significant performance loss.
  4. Everything treated as a file, so the same commands manipulate documents and device settings.
  5. Multi-user access, first through separate terminals connected to one central machine and later through logins on the machine itself.

If these seem obvious today, that is because we look at them from a modern perspective. At the time of Unix's launch, all of these features existed in dreams and experimental form. That model became the template that Linux, BSD and Darwin all followed.

BSD and the rise of Unix variants

The Berkeley Software Distribution, known as BSD, was created at the University of California, Berkeley, in 1977 and is the best known of the early Unix modifications. BSD added features that later mattered to the internet, including networking support that became part of the TCP protocol lineage.

AT&T received authorization in 1983 to sell Unix commercially, which led to Unix System V. From that point, AT&T tried to control the system's direction, and the result was more variants than coherence. Systems that follow the architecture are now described as Unix-like or Unix-type, and competitors released their own variants across the 1980s.

The legal fights that followed shaped how Unix is licensed today rather than how it works. In 1993, AT&T sold Unix to Novell. Two years later, in 1995, Novell sold the trademark to the Open Group, which became responsible for the standard.

A second legal battle then pulled in Novell, the Santa Cruz Operation (SCO), which had bought the Unix technology, IBM, and parts of the Linux community. The lawsuits centered on who owned which rights and which code, and they ran for more than a decade without producing a straightforward owner for all of Unix. The practical outcome is that Unix-type systems are licensed in scattered pieces. The trademark sits with the Open Group, while source code and copyrights rest with different holders depending on the branch.

How free software shaped Unix history

Free software reshaped Unix history in 1983 when Richard Stallman announced the GNU Project, a free operating system compatible with Unix but built without the original code. The name is recursive: GNU stands for GNU is Not Unix. Stallman founded the Free Software Foundation in 1985.

The GNU General Public License introduced copyleft: distributed modifications had to carry the same freedoms as the original. The POSIX standard, or Portable Operating System Interface, aimed to unify the competing variants, and the Open Group later became the body responsible for the Unix standard and trademark.

In 1987, Andrew Tanenbaum released Minix, a small teaching version of Unix. A Finnish student named Linus Torvalds used it as one reference while building a kernel, and in August 1991 he posted the first public announcement of the project that became Linux. Combining that kernel with GNU tools produced a free, Unix-compatible operating system commonly called GNU/Linux.

Torvalds's post opened one of the most active maintenance communities in software. The name Linux is a fusion of Linus and Unix. In 1991 the then-famous Sun Microsystems launched Solaris, its version of Unix, which dominated enterprise servers for almost a decade. A year later, Bell Labs tried to create a successor research project called Plan 9, built on concepts from the original model. It was used internally and released as free and open source, but it did not excite, and it was last updated in 2015.

UNIX System V vs BSD vs Linux vs Darwin: how the branches compare

The Unix family branches share an architecture but differ in ownership, license and code lineage. A side-by-side view keeps that clearer than a linear narrative.

BranchOriginLicenseCertified by the Open Group
UNIX System VAT&T, 1983ProprietarySome derivatives
BSDUC Berkeley, 1977PermissiveNo
LinuxLinus Torvalds, 1991GPLNo
DarwinApple, from NeXTSTEP and BSDOpen source coremacOS is certified

The Linux kernel, first published by Linus Torvalds in 1991, is the foundation for Android, and it is not derived from the original Unix source code. Linux and the GNU tools together form a free, Unix-compatible operating system, while the Unix trademark stayed with the Open Group.

What survives of Unix today: macOS, Android and servers

Unix survives today as code inside macOS and iOS, as the kernel under Android, and as Linux on servers, but the Unix trademark covers only certified systems. Apple's macOS and iOS run on Darwin, a kernel with BSD Unix roots. Android runs on the Linux kernel, which Google built for mobile devices in 2008.

The Apple route runs through NeXTSTEP. In 1996, Apple bought NeXT, a company founded by Steve Jobs after his forced departure, and NeXTSTEP was based on BSD Unix. Apple released the Mac OS X line in 2001 on top of Darwin, and the same kernel line reached the iPhone.

Android takes the Linux path instead. Google's mobile system sits on a kernel that started with Torvalds in 1991, so Android and macOS share an ancestor from the 1970s rather than a direct code base.

Certified Unix systems listed by the Open Group include macOS, IBM z/OS, HP-UX, and SCO Group's UnixWare. Certification is a trademark status, separate from the wider group of systems that carry Unix lineage without certification.

On servers, Linux variants run most of the public cloud and many corporate workloads, including infrastructure at Google, Amazon, Meta, Netflix and Microsoft. That adoption follows from Linux availability and the Unix architecture, not from any license granted by the Open Group. Unix was so well known that it even appeared in a scene from the first Jurassic Park film.

Unix history in Brazil: Conectiva and government adoption

Unix history in Brazil ran through universities first, then through a commercial Linux distribution and federal procurement policy. The national research and education network, operational since 1991, connected the main academic institutions using protocols that ran on Unix infrastructure.

Free and open software spread through university, government and professional practice. The distribution Conectiva, created in 1995 by a group of friends in Curitiba, was the first commercial Linux distribution aimed specifically at Latin America.

Porto Alegre hosted the first edition of the International Free Software Forum in 2000, known by its Portuguese acronym FISL. In May 2003, the federal government confirmed it would give preference to free software for economic and political reasons: reduce dependence on foreign suppliers, cut licensing costs and invest in national development.

Not every contract was fulfilled, and public universities later signed agreements with Microsoft and Google. The policy still encouraged systems built by the Receita Federal, Brazil's federal revenue service, with Linux as a base. Creators like Gustavo Dev Doido have documented this community, and you can find more at CrazyStack.

FAQ about Unix history

Is Android based on Unix?

Android runs on the Linux kernel, which Linus Torvalds released in 1991 as a free Unix-compatible system written without the original Unix source code. Android therefore inherits Unix architecture through Linux rather than through certified Unix code.

Did UNIX and Linux come from the same place?

Both trace to Bell Labs work from 1969, but through different branches. Unix was built by Ken Thompson and Dennis Ritchie, while Linux was written from scratch by Linus Torvalds and combined with GNU tools.

Who invented the Unix operating system?

Ken Thompson started the project at Bell Labs in 1969, and Dennis Ritchie co-designed it and created the C language that made it portable. The 1974 paper The UNIX Time-Sharing System documents the result.

What does the Open Group's Unix certification cover?

The Open Group holds the Unix trademark and certifies specific systems such as macOS, IBM z/OS, HP-UX and SCO UnixWare. Certification covers those products only, and many Unix-like systems are not certified.

How many Unix variants exist today?

Unix lineage now spreads across several families rather than one product. The main branches are BSD, Linux, Darwin and the certified commercial Unix systems such as AIX, HP-UX and Solaris.

What is Multics and why did it fail?

Multics was a 1965 time-sharing system built by MIT, General Electric and Bell Labs for one central machine. It was complex and slow to develop, so Bell Labs withdrew in 1969, opening the way for Thompson's smaller alternative.

Why was Unix rewritten in C?

Rewriting Unix in C in 1973 made it portable: the same code could be compiled on any machine with a C compiler, instead of being locked to one assembly instruction set. That portability is why Unix spread beyond Bell Labs.

What is BSD and why does it matter?

BSD, the Berkeley Software Distribution, started at UC Berkeley in 1977 as the best known early Unix modification. It added networking support that became part of the TCP protocol lineage and later fed into Darwin and macOS.

What happened to Unix legally?

AT&T sold Unix to Novell in 1993, and Novell sold the trademark to the Open Group in 1995. A decade of lawsuits involving Novell, SCO, IBM and the Linux community left rights scattered, with the trademark at the Open Group and code copyrights with different holders.

Does Unix still exist?

Yes. It exists as certified systems such as macOS and AIX, as the BSD and Darwin lineage, and as Linux on most servers and in Android. The original code survives in some branches, while others reimplement the same architecture.

Turn a video into an article with Skalablog

Unix spread because a small, portable design could be rebuilt on new hardware, and the same idea applies to explanation: one clear account travels further than a long recording locked in one format. If you have an interview, a technical explanation or a talk about operating systems sitting in a YouTube video, that material can become a written article instead of staying audio-only.

With Skalablog, you paste a YouTube URL, the video is transcribed, and a full article draft is generated that you can review and adjust before publishing. The transcript becomes the raw material, and the written version is what readers can search, quote and link back to.

Source video

If you have a story like the one in this article, you can turn it into a post with CrazyStack Typescript.