Unix, Linux & Windows History
Linux and Windows look very different today, but many of their ideas come from the same few decades of research.
Knowing where they came from explains a lot of their quirks: why Linux has /etc and /dev, why Windows has drive
letters and \ in paths, and why both have processes, virtual memory and a privileged kernel.
Before Unix: batch systems and time-sharing
The first computers ran one job at a time. An operator loaded a program (on punched cards or tape), it ran to completion, and the next job started. Batch systems in the 1950s automated the queue but still ran one job at a time. In the 1960s time-sharing systems such as CTSS and Multics let many users at terminals share one machine by switching between them many times per second. Multics introduced hierarchical file systems, dynamic linking and ring-based protection, but it was large and late.
Unix (1969 onward)
Ken Thompson and Dennis Ritchie at Bell Labs wanted the good parts of Multics on a small machine. The result was Unix, rewritten in the new C language in 1973, which made it portable to other hardware. Unix contributed ideas that every modern OS still uses:
- a single directory tree starting at
/, with devices appearing as files under/dev - processes created with
fork()andexec() - pipes that connect the output of one program to the input of another
- small tools that each do one job well (the Unix philosophy)
- plain-text configuration files
That philosophy is still visible on any Linux box. Five tiny programs, each knowing nothing about the others, combine into a word-frequency counter:
cat > story.txt <<'EOF'
the kernel schedules the threads
the threads share the memory
the kernel protects the memory
EOF
tr ' ' '\n' < story.txt | sort | uniq -c | sort -k1,1nr -k2 | head -3 6 the
2 kernel
2 memory
Unix spread to universities, and the University of California's BSD (Berkeley Software Distribution) added virtual memory and the TCP/IP sockets API. Commercial Unixes followed (SunOS/Solaris, HP-UX, AIX). To keep them compatible, the IEEE published POSIX (1988), the standard interface that Linux and macOS follow today.
Linux (1991 onward)
In 1991 Linus Torvalds, a student in Helsinki, announced a free kernel for the 386 PC "just a hobby, won't be big". The GNU project (started by Richard Stallman in 1983) already had a compiler, a shell and most Unix tools but no finished kernel. Linux plus GNU tools gave the world a complete free Unix-like system. Linux is licensed under the GPLv2, so anyone can use and change it, but changes they distribute must stay open.
Today Linux runs the majority of web servers, all of the top 500 supercomputers, most cloud workloads, Android phones, routers, TVs and cars. Distributions bundle the kernel with user-space software:
| Family | Examples | Package tool |
|---|---|---|
| Debian | Debian, Ubuntu, Linux Mint | apt / dpkg |
| Red Hat | Fedora, RHEL, Rocky Linux, AlmaLinux | dnf / rpm |
| Independent | Arch Linux, Alpine, openSUSE, Gentoo | pacman, apk, zypper, emerge |
macOS is a Unix too, but not Linux: its kernel XNU combines the Mach microkernel with BSD code.
Windows: from MS-DOS to NT
Microsoft's first OS for the IBM PC was MS-DOS (1981): single-user, single-tasking, no memory protection,
drive letters (A: and B: for floppies, C: for the hard disk) and \ as path separator (because / was
already used for command options). Windows 1.0 to 3.11 and later Windows 95/98/ME were graphical layers that
still relied on DOS underneath; a single bad program could freeze the whole machine.
In parallel, Microsoft hired Dave Cutler (designer of DEC's VMS) to build a new, portable, secure OS from scratch: Windows NT ("New Technology", 1993). NT had a real kernel with preemptive multitasking, protected memory per process, the NTFS file system, user accounts with access control lists, and Unicode. In 2001 Windows XP moved home users onto the NT kernel, and every Windows since (Vista, 7, 8, 10, 11, Windows Server) is NT.
| Year | Release | Kernel version |
|---|---|---|
| 1993 | Windows NT 3.1 | 3.1 |
| 2001 | Windows XP | 5.1 |
| 2009 | Windows 7 | 6.1 |
| 2015 | Windows 10 | 10.0 |
| 2021 | Windows 11 | 10.0 (build 22000 and later) |
That is why ver on a Windows 11 PC prints a 10.0 version (sample output):
C:\Users\ada>ver
Microsoft Windows [Version 10.0.26100.4652]A timeline you can query
The script below stores a few milestones and prints them grouped by family, with the time from Unix to each:
events = [
(1969, "Unix", "Unix written at Bell Labs"),
(1973, "Unix", "Unix rewritten in C"),
(1977, "Unix", "first BSD release"),
(1981, "Windows", "MS-DOS 1.0"),
(1985, "Windows", "Windows 1.0 (runs on DOS)"),
(1988, "Unix", "POSIX.1 standard"),
(1991, "Linux", "Linux 0.01 announced"),
(1993, "Windows", "Windows NT 3.1"),
(2001, "Windows", "Windows XP brings NT to home users"),
(2008, "Linux", "Android 1.0 ships with a Linux kernel"),
(2016, "Windows", "WSL runs Linux programs on Windows"),
]
for family in ["Unix", "Linux", "Windows"]:
print(family)
for year, fam, text in sorted(events):
if fam == family:
print(f" {year} (+{year - 1969:2} y) {text}")Unix
1969 (+ 0 y) Unix written at Bell Labs
1973 (+ 4 y) Unix rewritten in C
1977 (+ 8 y) first BSD release
1988 (+19 y) POSIX.1 standard
Linux
1991 (+22 y) Linux 0.01 announced
2008 (+39 y) Android 1.0 ships with a Linux kernel
Windows
1981 (+12 y) MS-DOS 1.0
1985 (+16 y) Windows 1.0 (runs on DOS)
1993 (+24 y) Windows NT 3.1
2001 (+32 y) Windows XP brings NT to home users
2016 (+47 y) WSL runs Linux programs on Windows
Where the families meet
The two worlds have moved closer. Windows has a built-in OpenSSH client, tar and curl; WSL (Windows Subsystem
for Linux) runs a real Linux kernel in a lightweight VM (WSL & Hyper-V); PowerShell runs on Linux and
macOS; and Microsoft is one of the larger contributors to the Linux kernel. Concepts in this course therefore
transfer: once you understand a process, a page table or a file system on one system, the other is mostly new names
for the same ideas.
| Idea | Unix/Linux name | Windows name |
|---|---|---|
| Running program | process (PID) | process (PID / process ID) |
| Reference to an open resource | file descriptor (small integer) | handle |
| Start a program | fork() + execve() |
CreateProcess() |
| Background program | daemon | service |
| Settings store | text files in /etc |
registry |
| Administrator | root (UID 0) |
Administrators group, SYSTEM |
Learn more: OS Architecture · Linux vs Windows
Test yourself
Which operating system family is every modern Windows version (XP, 7, 10, 11) built on?
- MS-DOS
- Windows 95
- Windows NT
- OS/2
What does POSIX define?
- A Linux distribution
- A standard interface for Unix-like systems
- The NTFS on-disk format
- A Windows driver model
Why does Windows use \ as the path separator?
- NTFS cannot store
/ - MS-DOS already used
/for command options - It was copied from Unix
- Because of Unicode