Created
July 23, 2015 20:11
-
-
Save angelbladex/7abf81d7aa079218f3ff to your computer and use it in GitHub Desktop.
Get size of each kernel module on KB
This file contains hidden or 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
#!/bin/bash | |
lsmod | awk '{$2/=1024; printf "%s %.2fKB\n",$1,$2}' | sed 's/\./,/g' | awk '{if (NR!=1) {print}}' | column |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sed is optional if your decimal separator is a period.