Created
April 25, 2017 21:32
-
-
Save cjohnson496/9b1cbdd580f037e3dbab92d1fcf912ac to your computer and use it in GitHub Desktop.
Different ways of listing kernel modules.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsmod | cut -d' ' -f1 |sort |sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g' | |
lsmod | cut -d' ' -f1 | xargs modinfo | egrep '^file|^desc|^dep' | sed -e'/^dep/s/$/\n/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment