You learned that Linux began in 1991. But when people say "I use Linux", they usually mean a distribution, or distro for short. Let's find out what that is and which one you have! ๐ง
Kernel + helpers = a distribution
- The Linux kernel is the heart. It talks to the hardware.
- A distribution wraps the kernel with everything else you need: programs, a desktop, tools and an app store called a package manager.
Think of the kernel as an engine, and distributions as different cars built around it.
| Distro | Where you find it |
|---|---|
| Ubuntu | PCs, laptops and servers. Very popular and beginner friendly |
| Debian | The solid base that Ubuntu and many others are built on |
| Raspberry Pi OS | Raspberry Pi computers (built on Debian) |
| Fedora | PCs and developers |
| Android | Phones and tablets, built on the Linux kernel |
| ChromeOS | Chromebooks, also built on Linux |
๐งช Lab 1: which family member are you?
cat /etc/os-release
Find these lines:
NAME=andVERSION=is your distro and its versionID=is a short name (likeubuntuorraspbian)ID_LIKE=tells you its relatives. If it saysdebian, your distro is part of the Debian family!
uname -r
uname -m
uname -ris the kernel release (its version number).uname -mis the machine type:x86_64(typical PCs) oraarch64(a Raspberry Pi 4 or 5, and many phones).
๐งช Lab 2: the package manager
On Ubuntu and Raspberry Pi OS, programs come from "package" stores, managed by a tool called apt.
apt --version
How many programs ("packages") are installed on your computer?
apt list --installed 2>/dev/null | wc -l
apt list --installedlists the installed packages.| wc -lcounts the lines (wcmeans word count, and-lcounts lines).2>/dev/nullhides any warnings. Think of/dev/nullas a black hole for text!
ls /usr/bin | wc -l
This counts the programs you can run. Linux comes with hundreds of tools!
โ ๏ธ Installing needs permission. To install an app you would use
sudo apt install ..., but only with a grown-up, and not today. Looking is safe.
๐งช Lab 3: be a family tree detective
Run cat /etc/os-release on another Linux machine too (a friend's, your school's, or a virtual machine). Compare the ID= and ID_LIKE= lines.
Why so many distros?
Because Linux is open source: anyone can take it, change it and share it. Some distros are for beginners, some for tiny computers, some for servers. Same engine, different cars!
Words to know
| Word | What it means |
|---|---|
| Distribution (distro) | The Linux kernel plus programs, tools and a package manager |
| Package manager | A tool that installs, updates and removes programs |
| Open source | Code that anyone can read, use and improve |
