Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to see the loaded kernel modules on Mac OSX?

In Linux we have the lsmod. What is the equivalent of lsmod in Mac?

like image 204
0x90 Avatar asked Jul 14 '12 07:07

0x90


People also ask

How do I know which kernel modules are loaded?

To list all currently loaded modules in Linux, we can use the lsmod (list modules) command which reads the contents of /proc/modules like this.

How do I see kernel extensions on Mac?

Where Are Kexts Found? You can find kexts in two places on your Mac. Most live in the “System/Library/Extensions” directory, which is the primary home for kexts. Some are also found in the “/Library/Extensions” folder as well, but that's less common.

Where can I find kernel modules?

Linux. Loadable kernel modules in Linux are loaded (and unloaded) by the modprobe command. They are located in /lib/modules or /usr/lib/modules and have had the extension . ko ("kernel object") since version 2.6 (previous versions used the .o extension).

Which command is used to check kernel modules?

modinfo command in Linux system is used to display the information about a Linux Kernel module. This command extracts the information from the Linux kernel modules given on the command line.


1 Answers

As of 2021, the manpages for kextstat, kextutil, kextload, and kextunload mention that they are deprecated, and instead recommend kmutil. To replicate behavior for kextstat, use kmutil showloaded.

like image 58
Blubber Avatar answered Oct 07 '22 02:10

Blubber