What Linux really is
Kernel, distributions, and open source: the map you need before you type a single command.
By the end of this lesson you can
- Explain what an operating system does and where the Linux kernel sits inside it.
- Tell the difference between Linux, GNU, and a distribution such as Ubuntu.
- Name the main distribution families and the package tool each one uses.
- Describe what an open source license allows you to do.
01An operating system in layers
Every computer, from a phone to a cloud server, has the same problem: many programs want to use one processor, one block of memory, one disk, and one network card at the same time. The operating system is the referee. It decides who runs, who gets memory, who may read which file, and it hides the messy details of each piece of hardware behind a clean interface.
It helps to picture it as layers. Each layer only talks to the one directly below it.
When people say "Linux" they usually mean the whole stack. Strictly speaking, Linux is the kernel: the core program that starts when the machine boots and stays in memory until it shuts down. It manages processes, memory, files, and devices. Everything else is software that runs on top of it.
02A short history: Linux and GNU
In 1983 Richard Stallman started the GNU project to build a complete free operating system that worked like Unix. By the early 1990s GNU had a compiler, a shell, an editor, and most of the small tools you will use in this course, but it was still missing a finished kernel.
On August 25, 1991, a Finnish student, Linus Torvalds, posted a message announcing a free kernel he was writing as "just a hobby." Combined with the GNU tools, that kernel made a complete, free system. This is why you will sometimes read "GNU/Linux": the kernel is Linux, and many of the everyday tools come from GNU.
Linux behaves like Unix (it follows the same ideas and the POSIX standards) but contains no Unix code. That family resemblance is useful: what you learn here also helps on macOS and the BSDs, which are Unix-like too.
Kernel = the engine. Distribution = the whole car: the engine plus the body, the seats, and the dashboard, assembled and tested by someone.
03Distributions
Nobody installs a bare kernel. You install a distribution (a "distro"): the Linux kernel bundled with GNU tools, a package manager, default settings, often a desktop, and a team or company that tests updates and ships security fixes. Hundreds of distros exist, but most belong to a few families.
| Family | Well-known members | Package tool | Typical use |
|---|---|---|---|
| Debian | Debian, Ubuntu, Linux Mint, Kali Linux | apt (.deb) | Desktops, servers, security labs |
| Red Hat | Fedora, RHEL, Rocky Linux, AlmaLinux | dnf (.rpm) | Enterprise servers |
| Arch | Arch Linux, Manjaro | pacman | Users who like to build their own setup |
| SUSE | openSUSE, SUSE Linux Enterprise | zypper (.rpm) | Enterprise, especially in Europe |
| Independent | Alpine Linux | apk | Tiny containers |
This course uses Ubuntu, which is built on Debian. Almost every command you learn works the same on every distro. The main thing that changes between families is how you install software, and Lesson 19 covers that.
Releases and support
Distros ship in releases. Ubuntu publishes a new version every six months, and every two years one of them is a Long Term Support (LTS) release that receives security updates for at least five years. Servers almost always run an LTS release, because stability matters more than the newest features. Version numbers are dates: Ubuntu 24.04 came out in April 2024.
04Where Linux runs
You probably use Linux every day without seeing it:
- Servers and the cloud. Most web servers and the large majority of cloud virtual machines run Linux.
- Phones. Android is built on the Linux kernel, with Google's own layer on top instead of the GNU tools.
- Supercomputers. Every one of the 500 fastest supercomputers in the world has run Linux since November 2017.
- Small devices. Home routers, smart TVs, cars, cameras, and the Raspberry Pi.
- Containers. Docker and Kubernetes containers are Linux processes with extra isolation.
That reach is why Linux skills sit at the base of nearly every IT and security career path: system administration, cloud, DevOps, networking, penetration testing, and incident response all assume you are comfortable at a Linux prompt.
05Open source and licenses
The Linux kernel is open source: its code is public, and anyone may read it, change it, and share it. Those rights come from its license, the legal text that says what you can do with the code.
The kernel uses the GNU General Public License, version 2 (GPLv2). The GPL is a "copyleft" license: you may modify and redistribute the code, but if you distribute a modified version you must share its source code under the same license. That rule is what keeps Linux open, even when large companies build products on it.
| License | Type | In one sentence |
|---|---|---|
| GPL | Copyleft | Share changes under the same license when you distribute them. |
| MIT | Permissive | Do almost anything, just keep the copyright notice. |
| Apache 2.0 | Permissive | Like MIT, plus an explicit patent grant. |
| Proprietary | Closed | You get a license to use the program, not its code. |
"Free software" in the GNU sense means freedom, not price: the freedom to run, study, change, and share the program. Plenty of free software is also free of charge, but that is a side effect.
Open code means anyone can audit it, defenders and attackers alike. Bugs get found and fixed in public, and every fix is announced as a security advisory. Your job as a Linux user is the boring, important part: install those updates. Most real-world break-ins on Linux servers use known holes that already had a patch.
06Desktop or server?
The same distro often comes in two flavors. A desktop edition has a graphical interface (GNOME, KDE Plasma, Xfce, and others) and is meant for a person sitting in front of it. A server edition has no graphics at all: you control it entirely through text, often from another computer over the network.
That is why this course is built around the command line. A graphical desktop is pleasant, but the command line works everywhere: on a server with no screen, inside a container, over a slow connection, and in scripts that run while you sleep.
Lab: scout your machine
No Linux needed yet. These steps prepare Lesson 02, where you build your lab. Check off each step as you finish it. Your check marks are saved in this browser.
Key takeaways
- Linux is a kernel: the core that manages processes, memory, files, and hardware.
- A distribution packages the kernel with tools, a package manager, and support. Ubuntu is a Debian-family distro.
- The kernel is licensed under GPLv2, which keeps it and its modified versions open.
- Linux runs servers, the cloud, Android phones, routers, and all of the top 500 supercomputers.
- The command line works on every Linux system, with or without a screen, so this course is built on it.