Unix, GNU, and Linux
On this page
Before you install Ubuntu, you read about it, and the documents disagree on its name. Ubuntu’s website calls it “an easy-to-use Linux desktop”. The Debian installation guide prefers “the term ‘GNU/Linux’”. The Linux kernel documentation says “Linux is a clone of the operating system Unix”. And the GNU project says free software “is a matter of liberty, not price”.
Three names, and a “free” that is not about price. By the end of this lesson, you can place Unix, GNU, and Linux on one timeline, say what each name refers to, and explain what free software promises and what it does not.
Before you start
Section titled “Before you start”- What an operating system does (B01.1), especially the kernel: the part of the operating system that receives system calls.
- No computer is needed. This lesson is the history behind the system you install in module B02.
Unix: where the design comes from
Section titled “Unix: where the design comes from”In 1969, Ken Thompson, Dennis Ritchie, and others started work on an operating system called Unix at Bell Labs, the research laboratory of AT&T.
In 1973, Unix was rewritten in C, a programming language: a way to write a computer’s instructions as text that people can read. In C, Unix could be moved to other kinds of computers. Its Sixth Edition, from 1975, was the first version widely available outside Bell Labs. Many versions grew from it, among them BSD, developed at the University of California at Berkeley.
The name has two spellings:
- UNIX, in capital letters, is a trademark of The Open Group. Only systems certified against its standard may carry it; Apple’s macOS is one.
- Unix, as this course writes it, is the family of systems with this design. A system that works like Unix, certified or not, is Unix-like.
Unix-like does not mean Linux: BSD systems and macOS are Unix-like, and they are not Linux.
GNU: a free system that works like Unix
Section titled “GNU: a free system that works like Unix”By the 1980s, almost all software was proprietary: it had owners who forbid users to share it and to work on it together. To understand or change a program, you need its source code: the program as a programmer writes it, as text in a programming language. The computer runs a translated form of that text, which people can hardly read.
On 27 September 1983, Richard Stallman, a programmer at MIT, announced the GNU project: a complete operating system, compatible with Unix, to be given away to everyone who could use it. GNU stands for “GNU’s Not Unix”: it would run Unix programs, but it would not be identical to Unix.
Work started in January 1984. The Free Software Foundation (FSF) was founded in October 1985, at first to raise money for it. In February 1989, the first version of the GNU General Public License (GPL) was published. By 1990, the GNU project had found or written every major part of an operating system except one: the kernel.
Linux: the missing kernel
Section titled “Linux: the missing kernel”In 1991, Linus Torvalds developed a Unix-compatible kernel and called it Linux. The kernel documentation says it was “written from scratch”: it is not a copy of the Unix kernel.
The release notes of the first version, Linux 0.01, state the problem plainly: “a kernel by itself gets you nowhere.” A working system also needs other programs, and the notes add that most of them were GNU software.
So the pieces fit: GNU had everything except a kernel, and Linux was a kernel. Together, they made a complete operating system, the kind you install with Ubuntu.
Unix: starts at Bell Labs (1969), rewritten in C (1973), spreads beyond Bell Labs (1975), continues in BSD and macOS. GNU: GNU project announced (1983), Free Software Foundation (1985), GPL version 1 (1989). Linux kernel: Linux 0.01 (1991), Linux under the GPL (1992). GNU and Linux together make a complete free system. No arrow leads from Unix to the other two: GNU and Linux were written to work like Unix, not as versions of it.
What “free” means in free software
Section titled “What “free” means in free software”Free can mean “at no cost” or “at liberty”. The GNU project’s Free Software Definition means liberty: think of “free” as in “free speech”, not as in “free beer”.
A program is free software when everyone who has a copy has four freedoms:
- To run the program for any purpose.
- To study how it works and change it. This needs the source code.
- To give copies to others.
- To give copies of changed versions to others. This also needs the source code.
The definition numbers them 0 to 3. Notice what the list leaves out: price.
Guess first: a company copies GNU programs onto a disc and sells the disc. Does that break the rules of free software?
Check your guess
No. The GNU project even encourages people who give out copies of free software to charge as much as they wish or can. The freedoms describe what you may do with your copy, even one you paid for.
Now the reverse case. Linux 0.01 came with its full source code, at no cost, and its license allowed sharing copies, on one condition: nobody could charge a fee for a copy, “not even ‘handling’ costs”. Guess first: was Linux 0.01 free software?
Check your guess
No. The freedom to give copies to others includes selling them, and a license that forbids selling copies is not a free license. The GNU project’s own account says of Linux: “It was proprietary at first, but in 1992, he made it free software”.
In the release notes for version 0.12, Torvalds wrote that people had asked him to remove the “you may not distribute it for money” condition and use the GNU license, and that he agreed. Linux became free software in 1992.
Price and freedom are separate questions, and so are source code and freedom.
Open source: a second name
Section titled “Open source: a second name”In February 1998, a group created the label open source, to stress the practical benefits of sharing source code rather than the political and philosophical reasons behind free software, and founded the Open Source Initiative (OSI).
The Open Source Definition states: “Open source doesn’t just mean access to the source code.” Like the Free Software Definition, it requires the source code and does not let a license forbid selling copies.
What the GPL asks of you
Section titled “What the GPL asks of you”A license is the text that says what you may do with a program. The GPL is the license the GNU project wrote for its software; the Linux kernel uses its version 2, from June 1991.
The GPL is a copyleft license: everyone may run, copy, change, and pass on the program, but nobody may add restrictions of their own.
| What you do with a GPL program | What the GPL asks |
|---|---|
| Run it, or copy it for your own use | Nothing |
| Change it and use the changed version yourself, or inside your organization | Nothing. You do not have to publish your changes |
| Give or sell copies to others, changed or not | Make the complete source code available to them, under the GPL, so they get the same freedoms |
The conditions start when you distribute the program: when you give or sell copies to other people.
Linux or GNU/Linux?
Section titled “Linux or GNU/Linux?”Strictly, Linux is the kernel. The GNU project and Debian call the whole system GNU/Linux, because the kernel alone is not a working system and much of the rest comes from GNU; many others, including Ubuntu, call the whole system Linux.
This course writes Linux for the whole system, because that is the name Ubuntu, the system the course uses, gives itself. When it means only the kernel, it writes the Linux kernel.
Security Angle
Section titled “Security Angle”Because anyone may read the source code, security researchers can examine the Linux kernel and GNU programs and report problems. That access has two limits:
- It does not mean that anyone has checked the code, only that anyone may.
- It does not prove what you run. Your computer runs a translated form of the source, and reading the source does not prove that your download was built from it, or that nobody changed it on the way.
Lesson B02.2 shows a check for part of the second gap: comparing a downloaded file with the value its publisher gives.
Try it yourself
Section titled “Try it yourself”Goal: Decide whether each situation fits free software and the GPL, and give one reason.
- A program costs nothing to download. Its license forbids giving copies to others, and its source code is secret. Is it free software?
- A company publishes its program’s source code for anyone to read, but forbids changing it. Is it free software?
- You change a GPL program and use it only on your own computer. Must you publish your changes?
- A friend says: “Linus Torvalds wrote the whole Linux system in 1991.” What is accurate, and what is not?
Expected: An answer and one reason for each, from the four freedoms, the GPL table, or the timeline.
Hint
For 1 and 2, find the first of the four freedoms that is missing. For 3, ask whether the program reaches other people. For 4, look at the GNU branch of the timeline.
Solution
- No. You may not share it, and without the source code you cannot study or change it. The price says nothing about freedom.
- No. You may read the source code, but not change it. Access to the source code is not enough.
- No. The GPL asks nothing while the changed program stays with you.
- Torvalds started the Linux kernel in 1991; he did not write the whole system. Most of the rest came from the GNU project, which started in 1983 and lacked only a kernel by 1990.
- Unix started at Bell Labs in 1969. BSD and macOS are Unix-like, and they are not Linux.
- GNU (1983) is a Unix-compatible free system that lacked only a kernel. Linux (1991) is that kernel. Together, they make a complete operating system.
- Free software means four freedoms: run, study and change, share, and share changed versions. It is about liberty, not price, and source code alone is not enough. Open source is a second name with its own definition.
- The GPL asks nothing while you use or change a program yourself. When you distribute copies, you must make the source code available.
- This course writes Linux for the whole system and the Linux kernel for the kernel alone.
Next, in Kernel, user space, and distributions, you see what a complete system contains around the Linux kernel.
Further reading
Section titled “Further reading”- The Open Group: History of UNIX, from 1969 to the UNIX trademark and its certification.
- The GNU project: Overview of the GNU System, the initial announcement of 27 September 1983, and The GNU Project, Richard Stallman’s longer account, including copyleft and, in the section “Linux and GNU/Linux”, the Linux kernel’s move from proprietary to free software in 1992.
- The GNU project: What is Free Software?, the Free Software Definition, and Selling Free Software.
- The GPL: version 1 (1989), version 2 as shipped with the Linux kernel, and the GPL FAQ, on what the license asks when you change or share a program.
- The Linux kernel: the release notes of Linux 0.01 and version 0.12, with the first license and the move to the GPL; What is Linux?; and Linux kernel licensing rules.
- Open Source Initiative: The Open Source Definition and History of the OSI.
- The names of the system: Linux and the GNU System (GNU project), What is GNU/Linux? (Debian installation guide), and About Ubuntu.