Linux Short Tip

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

1cat /proc/modules | cut -f 1 -d " " | while read module; do
2 echo "Module: $module";
3 if [ -d "/sys/module/$module/parameters" ]; then
4  ls /sys/module/$module/parameters/ | while read parameter; do
5   echo -n "Parameter: $parameter --> "
6   cat /sys/module/$module/parameters/$parameter
7  done
8 fi
9 echo
10done
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.