From the course: Cert Prep: LPIC-1 Exam 101 (Version 5.0)

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: Cert Prep: LPIC-1 Exam 101 (Version 5.0)

Start my 1-month free trial

Manage kernel modules

- [Instructor] In addition to the kernel itself, Linux has modules that have to match the kernel version. These modules add functionality to the kernel which could include file systems and device drivers. These modules are stored in /lib/modules for 32-bit kernels and /lib64 for 64-bit kernels. These paths may change depending on the distribution. Let's take a look at the /lib directory. In a terminal type in ls /lib/modules/$(uname -r)/kernel and hit Enter. The dollar sign in parentheses around uname -r will execute that command and the result will be inserted in its place. This was an easy way of inserting the current kernel version in the path without having to look it up. In this modules 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. We can get more information on a…

Contents