Skip to content

Instantly share code, notes, and snippets.

@cjohnson496
Created April 25, 2017 21:32
Show Gist options
  • Save cjohnson496/9b1cbdd580f037e3dbab92d1fcf912ac to your computer and use it in GitHub Desktop.
Save cjohnson496/9b1cbdd580f037e3dbab92d1fcf912ac to your computer and use it in GitHub Desktop.
Different ways of listing kernel modules.
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