# Kernel

> The core of an OS. It runs the chip, the memory and each device.

**Field:** Software Development  
**Category:** Platforms & OS  
**Also known as:** OS Kernel, Linux Kernel

## Think of it like

Think of it like the engine of a car. You never see it, but nothing moves without it.

## Definition

The kernel is the core of an operating system. It is the first part to load, and it stays in charge. It decides which program uses the chip, and for how long. It hands out memory and keeps programs from touching each other's memory. It also talks to the hardware through drivers. Everything else in the system asks the kernel for help.

## Example

Jack types uname -r on his server. It prints the version of the Linux kernel that is running.

## Example code

```console
$ uname -s
Linux
```

Ask which kernel is running. Add -r to see its version.

## Why it matters

When the kernel fails, the whole machine stops, not just one app. Its updates often fix big safety holes.

## Common mistake

Thinking the kernel is the whole system. The desktop, the tools and the apps are separate parts on top.

## Three principles

- **In charge.** It loads first and runs the machine.
- **Keeps apps apart.** One program cannot spoil another's memory.
- **Talks to hardware.** It uses drivers to reach each device.

## Related terms

- [Operating System (OS)](https://learn.benibix.com/term/development/operating-system)
- [System Call](https://learn.benibix.com/term/development/system-call)
- [Device Driver](https://learn.benibix.com/term/development/device-driver)
- [Process](https://learn.benibix.com/term/development/process)
- [Linux](https://learn.benibix.com/term/development/linux)
- [Linux Namespace](https://learn.benibix.com/term/infrastructure/linux-namespace)

## Told apart from

- [Kernel vs Operating System (OS)](https://learn.benibix.com/compare/kernel-vs-operating-system): People think the kernel is the whole system, and it is not. The kernel is only the core. It runs the chip, the memory and the devices. The system is the kernel plus all that sits on top: the desktop, the tools and the apps.

## Taught in

- [Operating Systems and Kernels](https://learn.benibix.com/learn/development-platforms/operating-systems-and-kernels): OS and Files, 1/10
- [UFW and Linux Firewalls](https://learn.benibix.com/learn/infrastructure-linux/ufw-and-linux-firewalls): Linux CLI, 10/10

![Three rows. On top, three apps: a web browser, a game and a code editor. Arrows marked system calls run down into the operating system, which holds the kernel and, under it, a disk driver, a screen driver and a Wi-Fi driver. Arrows run from each driver down to its piece of hardware: the disk, the screen and the Wi-Fi chip.](https://learn.benibix.com/diagrams/dev-os-layers.svg)

---

Source: https://learn.benibix.com/term/development/kernel
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
