Kernel
Cheat sheet · https://pcornel.dk/topic.php?topic=2651
Answer
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.
Remember
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).
First checks
uname -r— running kernells /lib/modules— installed kernels' moduleslsmod— loaded modulesmodinfo <module>— module details and parametersjournalctl -k -b— kernel messages since boot
Commands
uname -a- Read current Linux Infrastructure state for a bounded verification step.
Verify in this order
kernel installed → booted → module available for this kernel → module loaded → device or feature works
Where it usually breaks
First mismatch in persistent intent → provider/parser/generator → kernel/userspace runtime → dependency/security context → logs/counters → consumer-visible read-back; preserve identity/native diagnostic/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2651