Skip to content

Linux

Ch. 1 of 8
— CH. 1 · INTRODUCTION —

Contents

Linux

8 sections
  • Linux is an operating system family whose kernel Linus Torvalds first released on the 17th of September 1991. It now runs all 500 of the world's fastest supercomputers. That is a strange destination for a project that began with one student's frustration over a software license. Its descendants also sit inside Android phones and aboard the Falcon 9 rocket. Yet no company designed it, and its creator wanted to give it a different name. How did a hobby kernel inherit the work of earlier projects? Why did its author keep it free? And who pays for the code that now powers so much of the digital world?

  • In 1969, at AT&T's Bell Labs, Ken Thompson, Dennis Ritchie, Douglas McIlroy and Joe Ossanna conceived and built Unix. It was first released in 1971, written entirely in assembly language, as was normal practice then. In 1973 Ritchie rewrote nearly all of it in the C programming language. That choice made moving Unix to new computers far easier.

    A 1956 antitrust case barred AT&T from the computer business, so the company gave its Unix source code to anyone who asked. Universities and businesses adopted it quickly. Commercial machines followed. Onyx Systems sold early microcomputer Unix workstations in 1980, and Sun Microsystems, a spin-off of a Stanford student project, began selling its own in 1982.

    Then came 1984. AT&T divested its regional operating companies and the restriction on computers ended, so Bell Labs began selling Unix as a proprietary product. Users were no longer legally allowed to modify it.

    Richard Stallman had already reacted. In 1983 he started the GNU Project, aiming for a complete Unix-compatible system made only of free software, and work began in 1984. He founded the Free Software Foundation in 1985 and wrote the GNU General Public License in 1989. By the early 1990s the project had finished libraries, compilers, text editors, a command-line shell and a windowing system. The kernel, called GNU Hurd, stalled along with device drivers and daemons.

    Other options were thin. In 1987 Andrew S. Tanenbaum, a computer science professor, released Minix, a minimal Unix-like system for students learning how operating systems work. Its source code was freely available, but its license kept it from counting as free software until April 2000. The first fully free Unix for personal computers, 386BSD, only appeared in 1992. Tanenbaum's textbook would soon reach a student at the University of Helsinki.

  • In the fall of 1990, Torvalds enrolled in a Unix course at the University of Helsinki. The course ran on a MicroVAX minicomputer under Ultrix. One required text was Tanenbaum's Operating Systems: Design and Implementation, which came bundled with a copy of Minix. This was Torvalds' first real contact with Unix. By 1991 he was curious about operating systems and annoyed that Minix was licensed for education only, so he began writing his own kernel.

    On the 3rd of July 1991, he asked the comp.os.minix newsgroup for digital copies of the POSIX standards. He needed them to implement Unix system calls. He did not get them. Instead he worked out the calls from SunOS documentation the university owned for its Sun server. He learned a few more from Tanenbaum's book.

    At first Torvalds built the kernel on Minix itself, and Minix programs ran on it. As Linux matured, development moved onto Linux machines. GNU applications replaced every Minix component, because free GNU code was ready to use. Code under the GPL can be reused in other programs, provided they carry the same or a compatible license.

    Torvalds abandoned his first license, which banned commercial redistribution, and switched to the GNU GPL. Developers then fitted GNU components around his kernel, producing a fully functional and free operating system. Linux, like GNU and 386BSD, contained no Unix code. As a fresh re-implementation, it avoided legal trouble with AT&T.

    Legal complications held 386BSD back until 1992, although its development predated Linux. NetBSD, OpenBSD and FreeBSD all descend from it. Torvalds has said that if the GNU kernel or 386BSD had existed in 1991, he probably would not have created Linux. The kernel still needed a name, and the one on his makefiles was not Linux.

  • Torvalds wanted to call his creation Freax, a blend of free, freak and an x borrowed from Unix. For about half a year, some of the project's makefiles carried that name. He had considered Linux and dismissed it as too egotistical. In September 1991 the files went onto the FUNET FTP server. Ari Lemmke, Torvalds' coworker at the Helsinki University of Technology and a volunteer administrator of that server, disliked Freax. He labeled the project Linux without asking, and Torvalds later accepted it.

    Pronunciation has its own wrinkle. In a newsgroup post, Torvalds said the word has a short i as in print and a short u as in put. He included an audio guide with the kernel source to demonstrate. In that recording, however, he says LEEN-uuks, with a closer vowel than his written description implies.

    Ownership of the name was just as messy. Nobody registered it at first. On the 15th of August 1994, William R. Della Croce Jr. filed for the trademark and demanded royalties from distributors. In 1996 Torvalds and some affected organizations sued to have it assigned to Torvalds, and the case settled in 1997. The Linux Mark Institute then took over licensing. Torvalds says he registered the name only to stop anyone else from using it. The institute first charged a nominal sublicensing fee, but later switched to a free, perpetual worldwide sublicense.

    A different dispute concerns the whole system. The Free Software Foundation, whose president is Stallman, prefers GNU/Linux. It considers distributions to be variants of the GNU system begun in 1983. It raises no objection to the name Android, since GNU is not part of that system. Debian, which the foundation sponsored until 1996, also uses GNU/Linux. Most media and large distributions such as SUSE Linux and Red Hat Enterprise Linux say simply Linux.

    In 2011, Ubuntu's Natty release was measured at about 8 to 13 percent GNU components, depending on whether GNOME counts as GNU. The Linux kernel made up 6 percent, rising to 9 percent with its direct dependencies.

  • Torvalds himself describes his kernel as something that evolved. Unix, he says, served as scaffolding, but "Linux grew with a lot of mutations" that were less random than chance would suggest. Many open-source developers agree that the kernel was never designed in the usual sense.

    Eric S. Raymond locates the revolution in people rather than code. Before Linux, he argued, complex software came from carefully organized small groups. Linux was instead hacked on casually by huge numbers of volunteers who coordinated only through the Internet. Weekly releases brought feedback from hundreds of users within days. The result, in his words, was "rapid Darwinian selection on the mutations introduced by developers."

    Bryan Cantrill, an engineer working on a competing operating system, accepts that Linux evolved. He treats this as a weakness. Some features, especially security, he argues, cannot be reached by evolution alone. In his words, "this is not a biological system at the end of the day, it's a software system."

    The structure underneath is conventional. A Linux-based system draws much of its basic design from Unix principles set down in the 1970s and 1980s. The Linux kernel is monolithic, handling process control, networking, access to peripherals and file systems. Device drivers either live inside the kernel or load as modules while the machine is running.

    The license shapes the project as much as the architecture. The kernel is released under version 2 of the GPL. Anyone distributing it must pass along the source and any changes on the same terms. An exception for system calls lets programs that call the kernel avoid the GPL. Torvalds says the kernel will not move to version 3. He dislikes provisions in the newer license that prohibit use in digital rights management, and obtaining permission from thousands of copyright holders would be impractical. Everything a user touches, from the login prompt to the shell, comes from software beyond the kernel.

  • When a computer powers on and its firmware finishes initializing, a bootloader such as GNU GRUB, LILO, SYSLINUX or systemd-boot loads the kernel into memory. The first process the kernel launches is an init program, either the traditional sysvinit or newer ones such as systemd, OpenRC and Upstart. Init sits at the root of the process tree and starts system services and login prompts.

    The GNU C Library, known as glibc, is the standard C library and acts as a wrapper for the kernel's system calls. Embedded systems use alternatives such as musl, EGLIBC and uClibc. Android uses its own library, Bionic, while Void Linux runs musl even on desktops. Basic Unix commands usually come from GNU coreutils, with BusyBox and Toybox serving embedded devices. Bash, developed for the GNU Project, is the dominant shell, though Zsh is also used.

    Most graphical interfaces rest on the X Window System, whose reference implementation, X.Org Server, is the most popular. X permits an application running on one machine to be displayed on another. Wayland is designed to replace it, and by 2022 it had gained relatively wide adoption. A Wayland compositor combines the roles of display server, window manager and compositing manager. Sway and Hyprland are window managers built for it.

    On top sit desktop environments such as KDE Plasma, GNOME, MATE, Cinnamon, LXDE, Pantheon and Xfce, built on toolkits like GTK and Qt. Servers may skip the graphical layer entirely or ship a solution stack such as LAMP.

    Package managers such as apt, yum, zypper, pacman and portage install, remove and update all of a system's software from one central place. The distribution is responsible for default kernel configuration, general security and fitting the pieces together. Many thousands of distributions exist, from Debian, Fedora Linux, Linux Mint, Arch Linux and Ubuntu to commercial ones such as SUSE Linux Enterprise and ChromeOS. They come with very different sponsors behind them.

  • A 2017 analysis of the Linux kernel found that well over 85 percent of its code came from paid programmers. Unpaid developers wrote about 8.2 percent, and 4.1 percent could not be classified. Intel, Samsung, Google, AMD, Oracle and Facebook are among the corporate contributors. Red Hat, Canonical and SUSE have built significant businesses around distributions.

    The scale of the effort has been measured. A 2001 study of Red Hat Linux 7.1 counted 30 million lines of source code. Using the Constructive Cost Model, it estimated about eight thousand person-years of development. The kernel itself was 2.4 million lines, or 8 percent of the total. C accounted for 71 percent of the code, alongside C++, Lisp, assembly, Perl, Python, Fortran and shell scripting languages. Slightly over half of the lines were under the GPL.

    The same analysis of Debian 4.0, called etch and released in 2007, found close to 283 million lines. Its estimated effort was about seventy three thousand man-years.

    Companies earn money in several ways. Some charge for support, especially to business users, or sell a business edition with proprietary administration tools. Another model gives software away to sell hardware. CP/M, Apple DOS and versions of the classic Mac OS before 7.6 once worked that way. As hardware standardized through the 1980s, that approach became harder, since one operating system could run on any maker's compatible machine.

    Volunteers and communities carry much of the rest. Debian is a well-known volunteer effort. Red Hat maintains Fedora as a community version of its commercial product, and SUSE does the same with openSUSE. Torvalds guides kernel development as lead maintainer, and Greg Kroah-Hartman leads the stable branch. Local Linux User Groups hold meetings, give demonstrations and install the system for newcomers. Support also flows through IRC chatrooms, newsgroups, Unix & Linux Stack Exchange and LinuxQuestions.org. Print Linux magazines often bundle cover disks carrying complete distributions.

  • Production use began in the mid-1990s in supercomputing, where organizations such as NASA replaced increasingly expensive machines with clusters of cheap commodity computers running Linux. Dell and IBM, followed by Hewlett-Packard, then started offering Linux support to escape Microsoft's monopoly in desktop operating systems.

    Web servers became its strongest territory. ZDNet reports that 96.3 percent of the top one million web servers run Linux. Counting a wider set of domains, W3Techs estimates 39 percent, against 21.9 percent for Windows and 40.1 percent for other Unix systems. In Q1 2007, IDC put Linux at 12.7 percent of the overall server market. As of 2024, estimates suggest Linux handles at least 80 percent of public cloud workloads on Amazon Web Services, Microsoft Azure and Google Cloud Platform.

    Desktops tell a different story. In October 2024, Linux held an estimated 4.3 percent of desktop computers, while Windows had around 73.4 percent and macOS around 15.5 percent. Chromebooks running ChromeOS dominate the US K-12 education market and account for nearly 20 percent of sub-$300 notebook sales in the US.

    On phones, Android is overwhelming. In April 2023-68.61 percent of mobile devices reaching websites measured by StatCounter ran Android. Android was responsible for more than 60 percent of tablet sales as of 2013. Combined with Android, Linux had the largest installed base of any general-purpose operating system as of May 2022.

    Embedded devices round out the picture. Linux runs routers, automation controls, smart home gadgets, video game consoles and Samsung and LG smart TVs. It also drives cars from Tesla, Audi, Mercedes-Benz, Hyundai and Toyota, and the Dragon crew capsule and Ingenuity Mars helicopter. Its hardware reach spans ARM smartphones and IBM Z mainframes. The ELKS fork targets 16-bit Intel 8086 and 80286 chips, while the uClinux fork handles machines with no memory management unit. Valve built SteamOS on it, later used in the Steam Deck.

    Film studios adopted it early. The first major film produced on Linux servers was Titanic in 1997. DreamWorks Animation, Pixar, Weta Digital and Industrial Light & Magic have since migrated. According to the Linux Movies Group, over 95 percent of servers and desktops at large animation and effects companies run Linux.

    Governments have followed. The Indian state of Kerala mandated Linux in all state high schools. China uses it exclusively for its Loongson processor family to achieve technology independence. Extremadura and Andalusia in Spain built gnuLinEx and Guadalinex for education and official institutions. North Korea's Red Star OS, developed as of 2002, is based on Fedora Linux. Russia's military has reportedly created the G.H.ost Project, and the federal government of Brazil is another adopter. In April 2026 France ordered its ministries to begin replacing 2.5 million Windows desktops with Linux. That order lands on a desktop share of only around 4 percent as of March 2024.

Updated

Common questions

When was Linux first released and who created it?

Linus Torvalds first released the Linux kernel on the 17th of September 1991. He began it as a student at the University of Helsinki after becoming frustrated with the education-only license of Minix.

Why was Linux originally going to be called Freax?

Linus Torvalds wanted the name Freax, a blend of free, freak and an x alluding to Unix, and had dismissed Linux as too egotistical. Ari Lemmke named the project Linux on the FUNET FTP server without asking, and Torvalds later consented.

What license does the Linux kernel use?

The Linux kernel is licensed under version 2 of the GNU General Public License, with an exception for system calls. Torvalds states the kernel will not move to version 3, partly because he dislikes its digital rights management provisions.

Why does the Free Software Foundation call Linux GNU/Linux?

The Free Software Foundation considers Linux distributions to be variants of the GNU operating system that Richard Stallman started in 1983. It takes no issue with the name Android, because GNU is not part of Android.

Who writes the code for the Linux kernel?

A 2017 analysis showed well over 85 percent of the Linux kernel code came from paid programmers, about 8.2 percent from unpaid developers and 4.1 percent unclassified. Contributing companies include Intel, Samsung, Google, AMD, Oracle and Facebook.

What devices and systems run Linux today?

Linux runs all of the world's 500 fastest supercomputers, over 96.4 percent of the top one million web servers by one count, and Android phones. It also runs embedded systems such as routers, smart TVs, cars and the Ingenuity Mars helicopter.

All sources

183 references cited across the entry

  1. 6GNU UserlandApril 10, 2012
  2. 8What is ToyBox?Robert Landley
  3. 10U.S. Reg No: 1916230United States Patent and Trademark Office
  4. 12BookCompTIA Linux+ study guideRoderick W. Smith — Wiley Pub — 2009
  5. 13BookLinux with operating system conceptsRichard Fox — CRC press — 2015
  6. 15Free minix-like kernel sources for 386-ATLinus Benedict Torvalds — October 5, 1991
  7. 18Top 12 Most Popular Linux DistrosBrian Andrus — July 8, 2024
  8. 24NewsLinux' Birthday Is Commemorated – Subtly – by CreatorBarry Levine — Simpler Media Group, Inc — August 26, 2013
  9. 35What a Year for Linux: Please Join us in CelebrationAmanda McPherson — Linux Foundation — December 13, 2012
  10. 40Chromebook shipments leap by 67 percentSteven J. Vaughan-Nichols
  11. 42IBM's newest mainframe is all LinuxPatrick Thibodeau — Computerworld — 2009
  12. 43Linux totally dominates supercomputersSteven J. Vaughan-Nichols — ZDNet — 2017
  13. 44NewsLinux rules supercomputersDaniel Lyons — March 15, 2005
  14. 45Linux continues advance in smart TV marketEric Brown — March 29, 2019
  15. 48It's a Linux-powered car worldSteven J. Vaughan-Nichols — January 4, 2019
  16. 50Linux on Mars!August 18, 2021
  17. 51The UNIX System: The Evolution of the UNIX Time-sharing SystemD.M. Ritchie — October 1984
  18. 52Open source licensing: What every technologist should knowHeather Meeker — September 21, 2017
  19. 54BookAcquisitions and Open Source Software DevelopmentMichael Vetter — Springer Nature — August 10, 2021
  20. 55BookFor Fun and Profit: A History of the Free and Open Source Software RevolutionChristopher Tozzi — MIT Press — August 11, 2017
  21. 56BookThe Cathedral and the BazaarS. Raymond Eric — O'Reilly & Associates, Inc — October 1999
  22. 59Open Source History: Why Did Linux Succeed?Christopher Tozzi — August 23, 2016
  23. 61The Greatest OS That (N)ever WasGlyn Moody — Wired — August 1, 1997
  24. 63BookJust for Fun: The Story of an Accidental RevolutionaryLinus Torvalds et al. — HarperCollins — 2001
  25. 65Release notes for Linux v0.12Linus Torvalds — Linux Kernel Archives — January 5, 1992
  26. 69GNU General Public License, version 2GNU Project — June 2, 1991
  27. 70Re: GPL V3 and Linux ─ Dead Copyright HoldersTorvalds, Linus — Linux Kernel Mailing List — January 26, 2006
  28. 71Re: GPLv3 Position StatementTorvalds, Linus — Linux Kernel Mailing List — September 25, 2006
  29. 73Copyright notices (or the lack thereof) in kernel codeEklektix, Inc. — October 27, 2022
  30. 74More Than a Gigabuck: Estimating GNU/Linux's SizeDavid A Wheeler — July 29, 2002
  31. 75Measuring Etch: the size of Debian 4.0Juan José Amor — June 17, 2007
  32. 76Linux TimelineLinux Journal — May 31, 2006
  33. 77NewsLinus gets tough on Linux trademarkNeil McAllister — September 5, 2005
  34. 79GNU/Linux FAQGnu.org
  35. 80Debian and FSFBruce Perens — 1996-04-30
  36. 82About Debiandebian.org — December 8, 2013
  37. 83The linux-kernel mailing list FAQAndrew D. Balsa — October 17, 2009
  38. 84How much GNU is there in GNU/Linux?Pedro Côrte-Real — May 31, 2011
  39. 85Torvalds, Linus and Diamond, David, Just for Fun: The Story of an Accidental Revolutionary, 2001,
  40. 86Index of /pub/linux/kernel/SillySoundsLinus Torvalds — March 1994
  41. 87BookPractical UNIX and Internet SecuritySimson Garfinkel et al. — O'Reilly — 2003
  42. 88Linux system development on an embedded deviceAnand Santhanam — IBM — March 1, 2002
  43. 89NewsVista Aiding Linux Desktop, Strategist SaysPeter Galli — Ziff Davis Enterprise Inc. — August 8, 2007
  44. 90NewsLinux market share set to surpass Win 98, OS X still ahead of VistaRyan Paul — Ars Technica, LLC — September 3, 2007
  45. 91NewsVista to play second fiddle to XP until 2009: GartnerStan Beer — January 23, 2007
  46. 92Operating System Marketshare for Year 2007Net Applications — November 19, 2007
  47. 94Global Web StatsAwio Web Services LLC — November 10, 2007
  48. 95June 2004 ZeitgeistGoogle Inc. — August 12, 2004
  49. 96IBM, Brazilian government launch Linux effortRobert McMillan — IDG News Service — October 10, 2003
  50. 102The rise and rise of LinuxComputer Associates International — October 10, 2005
  51. 103Why customers are flocking to LinuxJeffrey S. Smith — IBM
  52. 108─ IDC Q1 2007 reportLinux-watch.com — May 29, 2007
  53. 118Linux and Star TrekRobin Rowe
  54. 126China's Microprocessor DilemmaMicroprocessor Report
  55. 127NewsSome countries are choosing Linux systems over MicrosoftJim Krane — November 30, 2001
  56. 130Re: Coding style, a non-issueLinus Torvalds — November 30, 2001
  57. 131BookThe Cathedral and the Bazaar: Musings on Linux and Open Source by an Accidental RevolutionaryEric S. Raymond — O'Reilly & Associates — 2001
  58. 132"You have to design it you cannot asymptotically reach Security." Cantrill 2017
  59. 133VideoThe Cantrill Strikes Back BSD Now 117Jupiter Broadcasting — November 26, 2015
  60. 134Why is Linux called a monolithic kernel?stackoverflow.com — 2009
  61. 135Anatomy of a Linux SystemO'Reilly — July 23–26, 2001
  62. 138Inside the Linux boot processM. Tim Jones — IBM Developer Works — May 31, 2006
  63. 141The Wayland Situation: Facts About X vs. Wayland (Phoronix)Jake Edge — LWN.net — June 8, 2013
  64. 142Announcing Fedora 36Matthew Miller — May 6, 2022
  65. 146The Video4Linux2 API: an introductionJonathan Corbet — LWN.net — October 11, 2006
  66. 152Certifying LinuxHeiko Eissfeldt — Linux Journal — August 1, 1996
  67. 154Unix is dead. Long live Unix!Liam Proven — January 17, 2023
  68. 155The evolution of package managers((26 Jul 2018 Steve OvensFeed 151up 9)) comments
  69. 157The makers' choice for sysadmins, developers and desktop users.Cynthia Sanchez: front-end and UI, Zvezdana Marjanovic: graphic design
  70. 159BookLinux kurz & gut: Die wichtigen BefehleDaniel J. Barrett — O'Reilly — August 27, 2024
  71. 161Current Issuelinux-magazine.com
  72. 164Apple's Shifting DifferentiationBen Thompson — November 11, 2020
  73. 165Apple Business Model AnalysisInternational Brand Equity — May 28, 2024
  74. 172A survey of Linux Web development toolsJoe Brockmeier — October 3, 2005
  75. 173Elks 0.8 Released: Linux for 16-bit Intel CPUsAltus Intel — September 25, 2024
  76. 174UClinuxJune 26, 2019
  77. 175Finally! Linux Runs Gracefully On Apple M1 ChipAnkush Das — January 21, 2021
  78. 178Is my hardware Linux-compatible? Find out hereBruce Byfield — August 14, 2007
  79. 179Linux HardwareLinux Hardware Project
  80. 180BookInformation Security Management HandbookHarold F. Tipton et al. — Auerbach Publications — 2007
  81. 181NewsOpen Source Security: How Linux is Shaping the Future of CybersecurityEmre Çintay — Medium Magazine — February 24, 2024
  82. 182NewsTop Linux Security Vulnerabilities and How to Prevent ThemLian Granot — Sternum — August 26, 2024
  83. 183NewsWhy the Largest Companies in the World Count on Linux ServersPetros Koutoupis — Linux Journal — June 13, 2017

Queue