how to

How to get a list of all kernel modules loaded in Ubuntu

 

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

List of all loaded Ubuntu kernel modules

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

The lsmod command is used to display the status of modules in the Linux kernel. lsmod is a trivial program that beautifully formats the contents of /proc/modules to show which kernel modules are currently loaded.

How to Check All Available Kernel Versions in Linux

By default, all installed Linux kernels and their associated files are stored in the /boot directory named vmlinuz. To check all available kernel versions on 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 in Ubuntu except for the 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 want to display the name of the kernel currently in use, as well as the installation and update date, run the uname command with the -sv options.

Related Articles

Back to top button