Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
List parameters each loead kernel module
# This script was created from source of ->
#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; \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment