Kernel and modules: uname, lsmod, modprobe, sysctl
Sign in to read this lesson
The kernel sits between the hardware and programs. An admin rarely changes it, but knowing its version, loading the driver (module) you need and tuning parameters such as networking with sysctl are part of daily work.
What you will learn
uname -rshows the kernel version,uname -aeverything; on Ubuntu the kernel is updated withapt.- Drivers come as modules:
lsmodshows loaded ones,modinfodetails,sudo modprobe nameloads one. - To load a module at boot use
/etc/modules-load.d/.conf, to forbid one/etc/modprobe.d/.conf(blacklist). /procand/sysshow the kernel's live state as files.sysctlchanges kernel parameters: permanent settings go in/etc/sysctl.d/99-*.confand are applied withsudo sysctl --system.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.