How To List All Kernel Modules That Are Loaded In Ubuntu

List all kernel modules that are loaded in Ubuntu Linux. You can use lsmod command to list kernel modules on Ubuntu.

List All Kernel Modules That Are Loaded Ubuntu

You can use the lsmod command to list all kernel modules that are loaded in Ubuntu. It gives the list of what kernel modules are currently loaded.

The lsmod command is used to show the status of modules in the Linux Kernel. The lsmod is a trivial program which nicely formats the contents of the /proc/modules, showing what kernel modules are currently loaded.

How To Check All Available Kernel Version In Linux

By default, all installed Linux Kernels and their associated files are stored under /boot directory named vmlinuz. To check all available Kernel version in Linux, run one of the following commands:

find /boot/vmli*
dpkg --list | grep linux-image
sudo dpkg ––list | egrep –i ––color ‘linux-image|linux-headers’
sudo dpkg ––list | egrep –i ––color ‘linux-image|linux-headers’ | wc –l

If you want to list all installed kernels on Ubuntu except current one, run the command:

dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/(.*)-([^0-9]+)/1/")"'/d;s/^[^ ]* [^ ]* ([^ ]*).*/1/;/[0-9]/!d'

If you wann to print the name of the kernel currently being used and the date of installation and update, run the uname command with -sv options.

Original Article