大佬教程收集整理的这篇文章主要介绍了linux – 为什么“lsmod | wc -l“不等于”ls / sys / module | wc -l“,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
lsmod | wc -l 100 ls /sys/module | wc -l 138
/ sys / module中的条目对应于内核中内置的动态模块和模块(并且具有需要可访问的参数),而不是动态加载.例如:
[michael@brazzers:~]$ls -d /sys/module/ip_tables/ /sys/module/ip_tables/ [michael@brazzers:~]$lsmod |grep ^ip_tables ip_tables 26995 3 iptable_filter,iptable_mangle,iptable_nat [michael@brazzers:~]$grep CONfig_NF_NAT_IPV4 /boot/config-3.8.0-30-generic CONfig_NF_NAT_IPV4=m
您可以在此处看到iptables模块配置为动态模块.相比较:
[michael@brazzers:~]$ls -d /sys/module/apparmor/ /sys/module/apparmor/ [michael@brazzers:~]$lsmod |grep ^apparmor [michael@brazzers:~]$grep APPARMOR /boot/config-3.8.0-30-generic CONfig_Security_APPARMOR=y
而Apparmor是内置的.
以上是大佬教程为你收集整理的linux – 为什么“lsmod | wc -l“不等于”ls / sys / module | wc -l“全部内容,希望文章能够帮你解决linux – 为什么“lsmod | wc -l“不等于”ls / sys / module | wc -l“所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。