Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

What Is Linux, and Which Distribution Should You Choose?

This page explains what Linux actually is, why there are so many different versions of it, and how to think about picking one.


What is Linux, and Why Learn It?

Linux is an open-source operating system kernel — the core piece of software that manages your computer’s hardware (CPU, memory, disks, networks) and lets programs talk to it.

The word “Linux” technically refers only to that kernel, created by Linus Torvalds in 1991. But in everyday speech, “Linux” means the whole operating system built around it: the kernel plus system libraries, tools, and software — usually packaged as a distribution (or “distro”) like Ubuntu, Fedora, or Arch.

Why Learn Linux?

  • It runs everything: servers, supercomputers, Android phones, routers, smart TVs, cloud infrastructure, and the world’s biggest websites.
  • It is free and open: anyone can use, study, and modify it, which is why it powers so much of the internet.
  • The CLI is universal: the same commands work on a laptop, a $5 server, and a supercomputer — learn once, use anywhere.
  • It teaches you how computing works: files, processes, permissions, and networks stop being magic when you can inspect them yourself.

If you want a career in servers, cloud, DevOps, security, or embedded systems, Linux is not optional — it is the default.


1. Kernel, Distributions, and the Full Stack

The Linux kernel alone cannot do much for a user. A working system is a stack:

┌─────────────────────────────────────┐
│  Applications (Firefox, nginx, ...) │
├─────────────────────────────────────┤
│  Shell & CLI tools (bash, ls, cp)   │
├─────────────────────────────────────┤
│  System libraries (glibc, systemd)  │
├─────────────────────────────────────┤
│  Linux kernel (hardware management) │
├─────────────────────────────────────┤
│  Hardware (CPU, RAM, disk, NIC)     │
└─────────────────────────────────────┘

A distribution bundles all of these layers into a complete, installable operating system. That is why “installing Linux” really means “installing a distro”.


2. The Major Distribution Families

There are hundreds of distros, but they mostly descend from a few families. Knowing the family tells you which package manager and tools to expect.

Debian family (.deb packages, apt)

  • Debian — the community-driven, rock-solid base many others build on
  • Ubuntu — the most popular beginner-friendly distro, huge community
  • Linux Mint — Windows-transplant friendly, based on Ubuntu
  • Kali Linux — penetration-testing focused (not recommended as a daily driver)

Red Hat family (.rpm packages, dnf/yum)

  • Fedora — the upstream, always-current testing ground for Red Hat
  • RHEL (Red Hat Enterprise Linux) — the paid, supported enterprise standard
  • AlmaLinux / Rocky Linux — free, RHEL-compatible rebuilds
  • CentOS Stream — the rolling preview between Fedora and RHEL

Arch family (.pkg.tar.zst packages, pacman)

  • Arch Linux — rolling release, minimal, “build it yourself”, excellent docs (the Arch Wiki)
  • Manjaro — Arch made approachable for beginners

Others worth knowing

  • openSUSE — polished, with the YaST admin tool; SUSE Linux Enterprise for business
  • Alpine Linux — tiny, security-focused; the default in many Docker containers
  • Gentoo — compile everything from source for maximum control

3. Release Models: Rolling vs Fixed

ModelWhat it meansExamplesGood for
RollingContinuous small updates; no big “version” upgradesArch, ManjaroLatest software, tinkerers
Fixed (point release)New major version every few years, very stableDebian stable, RHEL, Ubuntu LTSServers, stability first
Fixed (short cycle)New release every ~6 monthsFedora, Ubuntu (regular)Developers wanting newer software

LTS (Long Term Support) releases, like Ubuntu 24.04 LTS, get security updates for 5+ years — the standard choice for servers.


4. Which One Should You Pick?

A simple decision guide:

  • Never used Linux before? → Ubuntu, Linux Mint, or Fedora Workstation. All three install cleanly and have the biggest communities.
  • Learning for servers / DevOps? → Ubuntu Server or Debian, because most cloud images and tutorials target them. Also try Fedora if your job touches RHEL/AlmaLinux.
  • Want to learn how Linux works under the hood? → Arch Linux, or at least read the Arch Wiki, which is the best Linux documentation anywhere.
  • Building containers? → Get familiar with Alpine and Debian, the two most common container base images.

Example — check which distro you are running right now:

cat /etc/os-release
NAME="Ubuntu"
VERSION="24.04.1 LTS (Noble Numbat)"
ID=ubuntu

5. Linux vs Other Operating Systems

LinuxWindowsmacOS
KernelLinuxNTXNU (Unix-like)
SourceOpen sourceClosedMostly closed (Darwin is open)
CostFreeLicensedBundled with hardware
Package managerapt / dnf / pacman / …winget, Microsoft StoreHomebrew
Common useServers, cloud, embedded, devDesktops, enterprisesDesktops, dev (Unix-like)

macOS is Unix-like, so many CLI skills transfer directly — but the Linux-specific tools and paths in this book assume Linux.


Common Pitfalls

  • “Linux” is vague — when someone says “I use Linux”, ask which distro. Package commands differ between them (see the Package Management section).
  • Distro-hopping is a trap — pick one, learn it deeply, then explore others. The concepts transfer; the flags mostly do too.
  • Kali is not a daily driver — it is a security testing toolkit; running it as your main OS is discouraged by its own developers.
  • Ubuntu ≠ Debian ≠ Linux — but they share apt, so most commands you learn will work across the whole family.

PageWhy it is related
Terminal vs Shell vs KernelThe kernel mentioned above, explained properly
The Filesystem HierarchyWhere a distro puts everything on disk
CLI NavigationStart using the system right after installing

Linux Basics Cheatsheet

TaskCommand / fact
Check your distrocat /etc/os-release
Check kernel versionuname -a
Most popular beginner distrosUbuntu, Linux Mint, Fedora
Most popular server distrosUbuntu Server, Debian, RHEL/AlmaLinux
Container base imagesAlpine, Debian
Best documentation anywherethe Arch Wiki (archlinux.org/wiki)