Unix for PCs: Linux, FreeBSD, OpenBSD and other free Unix systems
Unix used to need expensive workstations. Today several free Unix-like systems run on any PC, laptop or single-board computer, and many of them run the internet's servers too.
Linux
Linux is a kernel, written by Linus Torvalds from 1991, combined with GNU tools and other software into a distribution. It is not derived from the original Unix code, but behaves like Unix and follows the POSIX standard.
| Distribution | Best for | Support |
|---|---|---|
| Debian | Stable servers and desktops; the base of Ubuntu and many others | About 5 years per release (Debian 13 "trixie", 2025) |
| Ubuntu | Easy desktops, cloud servers | 5 years for LTS releases (26.04 LTS until 2031), 10 or more with Ubuntu Pro |
| Fedora | Recent software, developers | About 13 months per release |
| Red Hat Enterprise Linux, AlmaLinux, Rocky Linux | Enterprise servers and certified commercial software | 10 years per major release (RHEL 10, 2025) |
| SUSE Linux Enterprise, openSUSE | Enterprise servers, SAP | See SUSE Linux Enterprise |
| Linux Mint | Former Windows users | Follows Ubuntu LTS |
| Arch Linux | Learning how Linux fits together; always-current software | Rolling release |
| Alpine Linux | Containers, small systems | About 2 years per release |
To try one, write it to a USB stick and boot from it: see booting Linux from USB.
The BSD family
The BSDs descend directly from the Berkeley Software Distribution, the University of California's version of Unix. Unlike Linux, each BSD is a complete system, kernel and user tools developed together, which makes them very consistent.
- FreeBSD
- The most widely used BSD: servers, storage (FreeNAS and TrueNAS CORE, until TrueNAS moved to Linux in 2025), networking appliances (pfSense, OPNsense), and parts of macOS and the PlayStation system software. Excellent documentation in the FreeBSD Handbook, ZFS built in, jails for containers.
- OpenBSD
- Security first: code audits, secure defaults and many security techniques that other systems later adopted. OpenSSH, LibreSSL and the
pffirewall come from OpenBSD. Ideal for firewalls and small, exposed servers. - NetBSD
- "Of course it runs NetBSD": supports a huge range of hardware, from modern servers to old workstations and embedded boards. Its pkgsrc package system is used on many other systems.
- DragonFly BSD
- A FreeBSD fork focused on multiprocessor performance, with its own HAMMER2 file system.
illumos
The open-source continuation of OpenSolaris, with ZFS, zones, SMF and DTrace. OpenIndiana and OmniOS run on PCs and servers. See Oracle Solaris for the background.
macOS and Windows
macOS is a certified Unix, built on a BSD-derived core, so a Mac's Terminal gives you a real Unix command line (with BSD rather than GNU versions of tools such as sed and find). On Windows 11, WSL runs genuine Linux distributions alongside Windows.
Small boards
A Raspberry Pi or similar board is a cheap way to learn Unix: Raspberry Pi OS is based on Debian, and FreeBSD, NetBSD and Ubuntu also run on it. It makes a good home server for file sharing, DNS ad blocking or home automation.
Which one should I choose?
- First Unix, desktop: Linux Mint, Ubuntu or Fedora.
- Learning server administration for a job: Debian or Ubuntu Server, and a RHEL-compatible system (AlmaLinux or Rocky) because many employers use RHEL.
- Firewall or router: OpenBSD, or OPNsense/pfSense (FreeBSD-based) if you want a web interface.
- File server with ZFS: FreeBSD, or Linux with OpenZFS.
- Old or unusual hardware: NetBSD.