Use it when a feature or device depends on kernel support, after a kernel update, or when the system logs kernel errors.
Kernel
The kernel is the core of Linux: it schedules processes, manages memory, provides system calls and runs drivers, filesystems and the network stack. Features are built in or loaded as modules.
1. uname -r — which kernel is running?
2. Installed kernels: dpkg -l 'linux-image*' or rpm -q kernel — newer one waiting for reboot?
3. lsmod | grep <module> — needed module loaded? If not, modprobe <module>.
4. journalctl -k -b -p warning — kernel warnings or errors?
5. Reboot into the intended kernel if needed and check again.
kernel installed → booted → module available for this kernel → module loaded → device or feature works
For Linux Fundamentals → Kernel, continue with the first unproven Topic check: Record the running kernel release/architecture and compare it with any installed-kernel assumption. If that boundary is healthy, advance to the adjacent check: Identify whether the feature is built in, module-backed or provided entirely in user space before diagnosing it as a kernel issue. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
uname -aPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
boot selection → running kernel image → built-in/module capability → runtime kernel configuration → subsystem/driver state → syscall/resource operation → user-space observation
Healthy evidence: the exact running kernel, capability/module state, runtime configuration and kernel-side operation correlate with the affected user-space consumer.
Step 2 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Record the running kernel release/architecture and compare it with any installed-kernel assumption.
- Identify whether the feature is built in, module-backed or provided entirely in user space before diagnosing it as a kernel issue.
- Correlate kernel logs/runtime state with the exact process, device, namespace or resource involved.
- After a kernel/module/configuration change, verify the same workload operation and check whether a reboot or process restart is actually required.
Verification chain. boot selection → running kernel image → built-in/module capability → runtime kernel configuration → subsystem/driver state → syscall/resource operation → user-space observation
Step 3 Specialized verification Verify boundary
Start by proving the booted kernel release and architecture, then verify the exact capability involved: config exposure where available, module/built-in state, sysctl value, device binding or subsystem status. Correlate kernel messages with timestamps and the user-space operation that triggered them instead of reading dmesg as an isolated error list. For a change, show that the running kernel now exposes the intended state and then repeat the original syscall- or workload-level operation; package inventory or a successful configuration write is only intermediate evidence.
Step 4 Commands Verify boundary
uname -r
cat /proc/version
Step 5 Failure modes and next checks Narrow the fault
Suspicious evidence: installed packages are mistaken for the running kernel, modules are assumed active from files on disk, or every low-level error is labeled a kernel bug.
Step 6 Special cases and limits Narrow the fault
A kernel warning does not automatically mean a kernel defect, and a user-space error does not show the kernel rejected the request. Drivers, firmware, hardware, namespaces, LSM policy and application misuse can all surface through kernel-visible errors. Root is still user space. A loaded module does not show a device is bound to it, a device binding does not show the higher-layer service is usable, and a reboot into a new kernel does not show application compatibility. Preserve the boundary between kernel capability, policy, device state and workload result.
Step 7 Common mistakes Narrow the fault
- Running an unsupported kernel without vendor support.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
The running kernel (uname -r) can differ from the newest installed one until reboot. Modules live in /lib/modules/$(uname -r); a missing directory there after an update means a reboot is pending or the module package is missing. Kernel messages go to dmesg and the journal (journalctl -k).
uname -r— running kernells /lib/modules— installed kernels' moduleslsmod— loaded modulesmodinfo <module>— module details and parametersjournalctl -k -b— kernel messages since boot
ReferenceWhat it is1 section · depth on demand
Core model
Pin the running kernel release and architecture, identify the relevant kernel subsystem and runtime configuration, distinguish built-in support from loaded modules, inspect kernel-side evidence for the operation, then correlate it with the user-space consumer. Reboot/package state matters only when it changes the booted kernel or module set.
ReferenceImportant terms & boundaries6 sections · depth on demand
What this shows and what it does not
A matching running kernel and loaded capability show availability at that layer only; they do not show user-space policy, namespace visibility or workload correctness.
In depth
The Linux kernel: identifying and understanding the running kernel
The kernel is the one program that runs with full hardware privileges, and everything else depends on it. Knowing exactly which kernel runs is the basis for driver support, security patches and bug reports. The uname(2) manual page describes the structure the kernel returns about itself:
sysname: the operating system name, "Linux".nodename: the host name.release: the kernel release, for example 6.8.0-49-generic.version: build information, often including the build date.machine: the hardware architecture.
The manual also notes that the same information is available under /proc/sys/kernel/, in ostype, hostname, osrelease, version and domainname.
The release string
| Part (6.8.0-49-generic) | Meaning |
|---|---|
| 6.8 | The upstream kernel series |
| .0 | The upstream stable patch level |
| -49 | The distribution's own build or ABI number |
| -generic | The distribution's flavour (generic, aws, azure, lowlatency, rt) |
Distribution kernels carry many backported fixes, so the upstream version alone doesn't say which security fixes are present. The distribution's changelog and security notices do.
Kernel files and locations
| Item | Location |
|---|---|
| Kernel image | /boot/vmlinuz-<release> |
| Initial RAM file system | /boot/initramfs-<release>.img or /boot/initrd.img-<release> |
| Modules | /lib/modules/<release>/ |
| Build configuration | /boot/config-<release> |
| Boot parameters of the running kernel | /proc/cmdline |
Running kernel versus installed kernels
| Question | Command |
|---|---|
| Which kernel runs now | uname -r |
| Which kernels are installed (RPM) | rpm -q kernel-core |
| Which kernels are installed (Debian) | dpkg -l 'linux-image-*' | grep ^ii |
| Is a reboot needed after an update | needs-restarting -r (RHEL), /var/run/reboot-required (Ubuntu) |
host$ uname -r; cat /proc/sys/kernel/osrelease
6.8.0-49-generic
6.8.0-49-generic
host$ uname -v
#49-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 4 02:06:24 UTC 2026
host$ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-6.8.0-49-generic root=/dev/mapper/vg0-root ro quiet
host$ ls /boot/vmlinuz-*
/boot/vmlinuz-6.8.0-45-generic /boot/vmlinuz-6.8.0-49-generic /boot/vmlinuz-6.8.0-51-generic
host$ grep -E "CONFIG_(PREEMPT|HZ)=" /boot/config-$(uname -r)
host$ test -f /var/run/reboot-required && cat /var/run/reboot-required
*** System restart required ***
Reading the example
The newest installed kernel (-51) isn't the one running (-49). Its security fixes don't apply until the host reboots into it. After any kernel update, comparing uname -r with the newest installed kernel is a standard check.
Documented example, not captured output.
How it works at runtime
Kernel is part of Linux Fundamentals → Kernel. Kernel is the running Linux core that schedules tasks, manages memory, exposes system calls, implements networking/filesystem primitives and coordinates drivers; troubleshooting must distinguish the booted kernel from installed kernel files and from distribution release identity.
Topic-specific state model. Kernel is the running Linux core that schedules tasks, manages memory, exposes system calls, implements networking/filesystem primitives and coordinates drivers; troubleshooting must distinguish the booted kernel from installed kernel files and from distribution release identity.
Interpretation rule. - Kernel package installed ≠ that kernel is currently booted.
- Module file available ≠ module loaded or bound to the intended device.
- Kernel feature exists ≠ runtime policy/configuration permits the operation.
- User-space command failure ≠ kernel defect.
Specialized mechanics
The running kernel owns system-call semantics, virtual memory, scheduler state, namespaces, cgroups, network and block I/O plumbing, device drivers and the security hooks used by user space. Keep the installed kernel packages, the image selected by the bootloader and the kernel currently executing as three different identities. Built-in functionality and loadable modules are also different states: a module file can exist under /usr/lib/modules without being loaded, while built-in functionality will never appear as a loaded module. /proc, /sys and tracing interfaces expose selected kernel state but are views, not the persistent source of truth.
Quick reference
The kernel manages processes, memory, filesystems, networking and devices. Versions follow major.minor.patch (e.g. 6.12.8); distributions backport fixes, so RHEL's 5.14 kernel contains features from much newer upstream versions.
uname -r
ls /boot/vmlinuz-*
cat /proc/cmdline
sysctl -a | grep -E '^vm.swappiness|^net.ipv4.ip_forward'
dnf list --installed kernel; apt list --installed 'linux-image*'
Keep at least one previous kernel installed for fallback; reboot (or live-patch with kpatch/Livepatch) to apply kernel security fixes.
Limits and how it fails
Primary failure point. A matching running kernel and loaded capability show availability at that layer only; they do not show user-space policy, namespace visibility or workload correctness.
ReferenceConfiguration & state2 sections · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. Kernel owns core runtime semantics. Bootloader selection, modules, sysctl/security, networking, storage and performance details may be expanded in their dedicated Linux branches.
Specialized lifecycle
Kernel behavior can be influenced at boot by the command line and later at runtime by sysctl, module parameters, cgroup controls, security policy and subsystem-specific interfaces. Persistent sysctl files, modprobe configuration and bootloader defaults only become effective when the responsible loader or kernel transition consumes them. Before changing a parameter, identify whether it is boot-only, runtime-writable, namespaced, per-interface or globally scoped. Record the previous value and the exact reboot/reload boundary; do not assume updating a file under /etc changes the booted kernel immediately.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Linux Fundamentals → Kernel. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/ · confidence 94%Authoritative Linux project/vendor documentation reviewed for bounded reference claims: kernel/user-space ownership, kernel interfaces and version-specific behavior. Documentation-based technical verification only; not lab or production-runtime proof. The schema vendor_doc method is used for authoritative project/vendor documentation; deployment applicability remains separate evidence.
Basis: https://docs.kernel.org/ · confidence 93%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Kernel operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Kernel.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | Kernel is the running Linux core that schedules tasks, manages memory, exposes system calls, implements networking/filesystem primitives and coordinates drivers; troubleshooting must distinguish the booted kernel from installed kernel files and from distribution release identity. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin distribution/release + CPU architecture + running kernel → identify the exact process/session and kernel-versus-user-space boundary → capture shell/TTY mode and effective environment where relevant → resolve the real executable/consumer → correlate requested action with observed runtime state → verify the original workload result before changing persistent configuration. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | boot selection → running kernel image → built-in/module capability → runtime kernel configuration → subsystem/driver state → syscall/resource operation → user-space observation | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | A matching running kernel and loaded capability prove availability at that layer only; they do not prove user-space policy, namespace visibility or workload correctness. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated host, process/session and runtime evidence can establish this Linux Fundamentals proof path: boot selection → running kernel image → built-in/module capability → runtime kernel configuration → subsystem/driver state → syscall/resource operation → user-space observation | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured host, kernel, process/session, environment or workload scope. A matching running kernel and loaded capability prove availability at that layer only; they do not prove user-space policy, namespace visibility or workload correctness. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven Linux layer: preserve platform identity and the running kernel, inspect the exact process/session and effective configuration/environment, resolve the actual consumer/executable, then verify the original workload before moving into the owning Linux subsystem branch. | Continue to the next unresolved boundary while preserving the original test condition. |
Kernel · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | Kernel |
|---|---|
| Topic path | Linux Fundamentals → Kernel |
| Runtime state | Kernel is the running Linux core that schedules tasks, manages memory, exposes system calls, implements networking/filesystem primitives and coordinates drivers; troubleshooting must distinguish the booted kernel from installed kernel files and from distribution release identity. |
| Fast checks | - Record the running kernel release/architecture and compare it with any installed-kernel assumption. - Identify whether the feature is built in, module-backed or provided entirely in user space before diagnosing it as a kernel issue. - Correlate kernel logs/runtime state with the exact process, device, namespace or resource involved. - After a kernel/module/configuration change, verify the same workload operation and check whether a reboot or process restart is actually required. |
| Verification chain | boot selection → running kernel image → built-in/module capability → runtime kernel configuration → subsystem/driver state → syscall/resource operation → user-space observation Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. |
| Failure boundary | A matching running kernel and loaded capability prove availability at that layer only; they do not prove user-space policy, namespace visibility or workload correctness. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |
Kernel · specialized operational reference
Topic-specific Linux mechanics, lifecycle, proof path and failure-boundary lookup.
| Operational boundary | Topic-specific reference |
|---|---|
| Identity | Running release + architecture + boot ID |
| Capability | Built-in, module, sysctl or subsystem state |
| Persistent intent | Bootloader, sysctl.d, modprobe.d or service-owned config |
| Proof | Kernel state plus original workload result |