Sun Solaris UNIX display list for loaded kenel device driver / modules

https:/‮/‬www.lautturi.com
Sun Solaris UNIX display list for loaded kenel device driver / modules

To display a list of loaded kernel device drivers or modules in Sun Solaris UNIX, you can use the modinfo command.

The modinfo command is a utility that displays information about kernel modules, including device drivers and other types of modules.

To display a list of loaded kernel device drivers or modules using the modinfo command, you can use the -l option to list the loaded modules:

modinfo -l

This will display a list of all loaded kernel modules with their module names and IDs.

To display a list of loaded kernel device drivers or modules with more detailed information, you can use the -m option to specify the module name and the -p option to show the parameters:

modinfo -m module_name -p

This will display detailed information about the specified module, including its name, ID, dependencies, and parameters.

To display a list of loaded kernel device drivers or modules in a script, you can use the modinfo command in a command substitution:

modules="$(modinfo -l)"
echo "Loaded modules: $modules"

This will assign the list of loaded modules to the $modules variable and print it to the console.

Keep in mind that these are just a few examples of how to display a list of loaded kernel device drivers or modules in Sun Solaris UNIX. You can customize the options and commands to meet the specific requirements of your script. You should also regularly review and update the script to ensure that it is correct and efficient.

Created Time:2017-10-30 14:27:21  Author:lautturi