What Is Linux, and What Does the Linux Kernel Do?

Uncover the essence of Linux and its powerful kernel. Explore the open-source operating system that has revolutionized computing. Learn about the Linux Kernel, the core of the system, driving innovation, and providing a robust foundation for diverse computing environments.

Jan 18, 2024 - 17:59
Updated: 7 days ago
108.3k
What Is Linux, and What Does the Linux Kernel Do?

Quick answer: Linux is a family of open-source, Unix-like operating systems built around the Linux kernel, which Linus Torvalds started in 1991. The kernel is the core that manages the CPU, memory, devices and processes. A Linux distribution, such as Debian, Ubuntu or RHEL, combines the kernel with tools, libraries and a package manager.

Key takeaways

  • The kernel is the core of the system. Linux strictly names the kernel; people also use it for the whole operating system.
  • A distribution is the kernel plus GNU tools, libraries, an installer and a package manager.
  • The kernel manages processes, memory, files, devices and networking, and enforces security.
  • Check your kernel with uname -r and see loaded modules with lsmod.
  • CentOS Linux is end-of-life. Rocky Linux and AlmaLinux are RHEL-compatible alternatives.

What is Linux?

Strictly speaking, Linux is a kernel: the central program of an operating system. In everyday talk, "Linux" means a whole operating system built around that kernel. Linus Torvalds began the kernel in 1991 as a student project. It was combined with tools from the GNU project, which is why some people say GNU/Linux. The result is free software: you can read, change and share the source code under licences such as the GPL. Linux is a Unix-like system, meaning it follows the Unix design of files, processes and permissions, but it is not the same as Unix. Linux powers most web servers, nearly all supercomputers, Android phones and a large part of the cloud.

What is the Linux kernel?

The kernel sits between hardware and programs. Applications ask the kernel for services through system calls, such as opening a file or sending data over the network. The kernel decides who gets the CPU, memory and devices, and keeps programs from interfering with each other.

What does the kernel do?

JobWhat it means
Process managementCreates, schedules and stops programs, sharing the CPU fairly
Memory managementAllocates RAM, uses virtual memory and swap, isolates processes
File systemsReads and writes data on disks through file systems such as ext4 and XFS
Device driversTalks to hardware: disks, network cards, USB, graphics
NetworkingImplements TCP/IP, firewall hooks and sockets
SecurityEnforces permissions, namespaces, cgroups and modules such as SELinux

What is the difference between Linux and a Linux distribution?

A distribution (distro) packages the kernel with everything else you need: the GNU command-line tools, a C library, a service manager such as systemd, a package manager, a desktop environment if wanted, default settings and an update service. Different distros make different choices.

  • Debian and Ubuntu: use apt and .deb packages.
  • Red Hat Enterprise Linux (RHEL), Fedora, Rocky Linux and AlmaLinux: use dnf and .rpm packages.
  • Arch Linux: a rolling release for people who like to build their system.

CentOS Linux, once a popular free rebuild of RHEL, is end-of-life. CentOS Stream continues, and Rocky Linux and AlmaLinux are the RHEL-compatible rebuilds. Red Hat's current release is documented at docs.redhat.com.

How do you check your kernel?

uname -r # kernel release, for example the version string
uname -a # full system information
cat /proc/version # kernel build details
lsmod # loaded kernel modules
dmesg | tail # recent kernel messages

The kernel version in a distro is not the same as the newest version on kernel.org. Enterprise distributions such as RHEL ship a specific kernel version and backport fixes into it for the life of the release.

What are kernel modules?

Modules are pieces of kernel code, mostly drivers, that can be loaded and unloaded while the system runs. lsmod lists them, modinfo describes one and modprobe loads it. This is how a new USB device or file system gets support without a reboot.

Is Linux the same as Unix?

No. Unix is a family of operating systems that goes back to the 1970s. Linux was written from scratch to behave like Unix, so many commands and ideas carry over. This is why skills from Linux transfer to systems like FreeBSD or macOS to a degree.

Common misunderstandings

  • "Linux is an operating system you download." You download a distribution.
  • "Free means no support." Companies sell support for enterprise distributions.
  • "A newer kernel is always better." For servers, stability and vendor support often matter more.

Next steps

Read the Linux kernel's importance and key features and the Linux administrator career roadmap. To learn hands-on, join our Linux course.

Related reading

Frequently Asked Questions

The Linux kernel is the core of the operating system. It manages the CPU, memory, devices, file systems and networking, and provides a safe interface that applications use through system calls. Linus Torvalds started it in 1991.

Linux is the kernel. A distribution bundles that kernel with tools, libraries, a package manager and default settings to make a complete operating system. Examples are Ubuntu, Debian, Fedora and RHEL.

No. Unix is an older family of operating systems. Linux was written independently to behave like Unix, so it follows similar design and commands, but it does not contain the original Unix code.

Yes, the kernel and most distributions are free software that you can use, change and share. Some vendors, such as Red Hat, charge for subscriptions that include support, certified software and updates.

Open a terminal and run uname -r to see the kernel release. Use uname -a for more detail or cat /proc/version for build information. The result shows the kernel your distribution provides.

CentOS Linux is end-of-life. CentOS Stream continues as a development branch ahead of RHEL. For RHEL-compatible servers, people use RHEL, Rocky Linux or AlmaLinux instead.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0