kernel
The core of an operating system that controls the hardware and decides what every program is allowed to do.
In more detail
Programs never touch the hardware directly: they ask the kernel through system calls to read files, open network connections or start other processes. The kernel enforces permissions, shares out memory and processor time, and keeps processes apart. Linux is a kernel, and macOS has its own as part of Darwin.
Examples
uname -s names the running kernel, such as Linux or Darwin.Programs never touch the hardware directly: they ask the kernel through system calls to read files, open network connections or start other processes. The kernel schedules processes, protects memory, enforces permissions and moves packets through the network stack. It supplies mechanisms, not meaning: it does not interpret your command line or decide what a file contains.A shell can be valid while the system call it makes is denied, and a healthy kernel can still host a broken application.Volatility reads kernel structures out of a memory image; auditd records kernel system calls.Related terms
- operating system — The base software, such as Linux, Windows or macOS, that runs a computer and lets other programs use it.
- uname — The command that prints information about the running operating system kernel; uname -s prints just its name, such as Linux or Darwin.
- Linux — A free, open-source operating system kernel, and the family of operating systems built around it.
- process — A program that is currently running, with its own memory and a numeric identifier.
- shell — The program that reads the commands you type, runs them and shows the results; sh and bash are common ones.
- system call — A request a program makes to the kernel, such as open this file or start a new process.
- namespace (Linux) — A Linux kernel feature that controls what a process can see, such as which other processes, network or host name.
- control group — A Linux kernel feature that limits how much memory, processor time and other resources a group of processes may use.
- kernel exploit — An attack that abuses a bug in the kernel to gain powers the attacker should not have.
- container — A running program that has been fenced off from the rest of the computer so it only sees its own files, network and processes.
- virtual machine — A complete pretend computer, with its own operating system, running as software on a real computer.
- asynchronous I/O — A way for a program to start disk or network operations and carry on working while the kernel completes them.
- userland — Everything in an operating system except the kernel: the libraries, tools, shell and files programs use.
- kernel mode — The privileged processor mode the kernel runs in, where code can touch hardware and all memory directly.
Taught in
- Connections And Privilege Escalation — Ansible Configuration Management at Scale
- What A Shell Is, And What Bash Is — Bash Scripting & Command Line Automation
- Pipelines, tee And Process Substitution — Bash Scripting & Command Line Automation
- Shebangs, Permissions And Three Ways To Run — Bash Scripting & Command Line Automation
- Processes, Jobs And Signals — Bash Scripting & Command Line Automation
- Permissions And Ownership — Bash Scripting & Command Line Automation
- Scheduling, Monitoring And A Script That Reports — Bash Scripting & Command Line Automation
- Requests, Limits And Quotas — Certified Kubernetes Application Developer (CKAD) Exam Prep
- SecurityContexts And Capabilities — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Comparing Compute Options — Cloud Infrastructure & Hyperscaler Architecture
- Container Hardening: Distroless & Rootless — Cloud Security & DevSecOps Engineering
- Kubernetes Pod Security Standards: Baseline & Restricted — Cloud Security & DevSecOps Engineering
- Runtime Anomaly Detection with Falco & eBPF — Cloud Security & DevSecOps Engineering
- Acknowledged Is Not Always Safe — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Forty One Under-Replicated Partitions — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Why Containers: Bare Metal, Machines And Processes — Docker Architecture & Production Containers
- Namespaces And Cgroups: Isolation And Limits — Docker Architecture & Production Containers
- Docker, OCI, The Engine And The CLI — Docker Architecture & Production Containers
- Install Docker And Verify Your Environment — Docker Architecture & Production Containers
- CMD, ENTRYPOINT, USER And Process Signals — Docker Architecture & Production Containers
- Minimal Bases, Non Root Users And Smaller Images — Docker Architecture & Production Containers
- Bind Mounts, Permissions And Backups — Docker Architecture & Production Containers
- Environment, Secret Files And Runtime Restrictions — Docker Architecture & Production Containers
- Diagnose Crashes, Resource Limits And Unhealthy Containers — Docker Architecture & Production Containers
- When Kafka Is The Wrong Tool — Apache Kafka & Event Streaming
- What A Kernel Does, And What It Refuses To Do — Linux Fundamentals & Systems Administration
- What A Distribution Actually Is — Linux Fundamentals & Systems Administration
- Everything Is A File: proc, sys And dev — Linux Fundamentals & Systems Administration
- Booting: GRUB, The Kernel Command Line And initramfs — Linux Fundamentals & Systems Administration
- libuv Architecture: Event Demultiplexer & Thread Pool — Node.js Internals & Backend Services
- Event Loop Lifecycle: The Six Phases & libuv uv_run — Node.js Internals & Backend Services
- Poll & Check Phases: I/O Callbacks & setImmediate — Node.js Internals & Backend Services
- Production Hardening: Graceful Shutdown & Docker — Node.js Internals & Backend Services
- SIEM Architecture: Ingestion Pipelines & Indexing — Security Operations & Threat Hunting (SOC)
- Windows Event Logs, Sysmon & Linux Auditd Telemetry — Security Operations & Threat Hunting (SOC)
- Memory Forensics: Process Trees & Injection — Security Operations & Threat Hunting (SOC)
- File Systems And Mounts: mounted, present And UUIDs — RHCE in Ansible (EX294): Automate Red Hat Systems
References
- The Linux kernel documentation
- intro(2) manual page: system calls
- The Linux Kernel Archives
- man7: syscalls(2)