Skip to content

Instantly share code, notes, and snippets.

@angelbladex
Created October 23, 2014 21:55
Show Gist options
  • Save angelbladex/e21f78364e252f335ff7 to your computer and use it in GitHub Desktop.
Save angelbladex/e21f78364e252f335ff7 to your computer and use it in GitHub Desktop.
List parameters each loead kernel module
#!/bin/bash
# This script was created from source of -> http://serverfault.com/questions/62316/how-do-i-list-loaded-linux-module-parameter-values
#This code list parameters of each loaded kernel modules
cat /proc/modules | cut -f 1 -d " " | while read module; do \
echo "Module: $module"; \
if [ -d "/sys/module/$module/parameters" ]; then \
ls /sys/module/$module/parameters/ | while read parameter; do \
echo -n "Parameter: $parameter --> "; \
cat /sys/module/$module/parameters/$parameter; \
done; \
fi; \
echo; \
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment