From the course: Linux: Kernels and Logging for System Administration

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Manage kernel modules

Manage kernel modules - Linux Tutorial

From the course: Linux: Kernels and Logging for System Administration

Start my 1-month free trial

Manage kernel modules

- [Instructor] In addition to the kernal itself, Linux has modules that have to match the kernal version. These modules add functionality to the kernal, which could include file systems and device drivers. These modules are stored in /lib/modules for 32-bit kernals, and /lib64 for 64-bit kernals. Let's take a look at the /lib directory. In a terminal, type in ls /lib/modules/$(uname -r)/kernal, and hit Enter. The dollar sign and parentheses around uname -r will execute that command and the result will be inserted in its place. This is an easy way of inserting the current kernal version into the path, without having to look it up. In this module's directory, we see other directories for drivers, file systems, network and virtualization, to name a few. To see the currently loaded modules, use the lsmod command. Type in lsmod and hit Enter. Here we have a list of modules that are loaded into memory, and their dependencies. We can get more information about a module using the modinfo…

Contents