Linux Short Tip

Folgendes kleines Bashscript zeigt alle geladenen Kernel Module inkl. deren Parameter:

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
This entry was posted in General, Linux, Short Tips. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.