What Linux is and how it is structured
Linux is the kernel of an operating system, and a Linux system means a distribution: the kernel together with the basic utilities, libraries and a package manager. Ubuntu, Debian and RHEL are different distributions on the same kernel, each with its own packages, releases and support periods.
For a server, choose a long-support release: Ubuntu LTS or Debian stable — that is what the projects themselves recommend. Ubuntu interim releases come out every six months and receive updates for only 9 months: they suit those who value fresh software versions over stability.
The system is built in layers. At the bottom is the kernel: it runs the basic housekeeping of the computer and starts the other programs. Programs talk to the kernel only through system calls — the kernel’s entry points — usually not directly, but through wrapper functions of the C library. Everything above the kernel is user space: utilities, services, the shell and applications.
How distributions differ
| Feature | Ubuntu | Debian | RHEL |
|---|---|---|---|
| Packages | deb (apt) and snap | deb (apt), more than 70,000 packages | rpm (dnf) |
| Releases | every 6 months; LTS — every 2 years | a new stable comes regularly; testing and unstable always exist alongside | major releases, each followed by minor ones |
| Support | LTS — 5 years of standard support, interim — 9 months | 5 years: 3 full and 2 LTS | 10 years |
| For a server | LTS | stable | a supported major release |
The examples in this reference are written for Ubuntu LTS and Debian stable. For the RHEL family, a command is given only when it differs — for example, dnf instead of apt.
Prerequisites
- Working in the terminal: commands, quotes, redirection and pipes — the Bash reference
- Services, how they run and their log — the systemd reference
- Securing a server: SSH, a firewall, security updates — the “Securing Linux servers” reference
- Addresses, subnet masks, routes and DNS as concepts — the “TCP/IP and DNS” reference
Section sources
the section is written from these pages- About Debiandebian.org/intro/about(opens in a new tab)
- intro(2)man7.org/linux/man-pages/man2/intro.2.html(opens in a new tab)
- Ubuntu release cycleubuntu.com/about/release-cycle(opens in a new tab)
- Debian Releasesdebian.org/releases/(opens in a new tab)
- Red Hat Enterprise Linux Life Cycleaccess.redhat.com/support/policy/updates/errata(opens in a new tab)