In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the Linux system how to use the lsmod command to list kernel modules, the article is very detailed, has a certain reference value, interested friends must read it!
Lsmod is a command-line utility that displays information about loaded Linux kernel modules.
Kernel module
The kernel is the core component of the operating system. It manages the resources of the system and is a bridge between computer hardware and software.
The Linux kernel has a modular design. A kernel module (often called a driver) is a piece of code that extends the functionality of the kernel. The module is either compiled as a loadable module or built into the kernel. Loadable modules can be loaded and unloaded in the running kernel as needed without having to reboot the system.
Typically, modules are loaded on demand by udev (device Manager). You can also use the modprobe command to load the module into the kernel manually, or use the / etc/modules or / etc/modules-load.d/* .conf file to automatically load the module into the kernel at boot time.
Kernel modules are stored in the / lib/modules/ directory. To find the distribution version of the running kernel, use the uname-r command.
Lsmod command
Lsmod is a simple utility that does not accept any options or parameters. The command reads / proc/modules and displays the contents of the file in a well-formed list.
Run lsmod from the command line to see which kernel modules are currently being loaded:
[linux@linux:~/www.linuxprobe.com] $lsmod
This command prints information for each loaded kernel module on the new line:
Use the lsmod command to list kernel modules in Linux and use the lsmod command to list kernel modules in Linux
Each row has three columns:
Module-the first column shows the name of the module. Size-the second column shows the module size in bytes. Used by-the third column displays a number indicating how many module instances are currently in use. A zero value indicates that the module is not being used. A comma-separated list after the number shows the modules in use.
To determine if a specific module is loaded, use grep to filter the output. For example, to find out if the vsock module is loaded, run:
[linux@linux:~/www.linuxprobe.com] $lsmod | grep vsock
For more information about the module, use the modinfo command.
[linux@linux:~/www.linuxprobe.com] the above $modinfo vsock is all the contents of the article "how to list kernel modules with lsmod commands on Linux systems". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.