Created
May 23, 2013 23:46
-
-
Save bmvakili/5640337 to your computer and use it in GitHub Desktop.
Show all libraries used by executables on linux
To find the answer for all executables in the "/bin" directory:
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
#http://stackoverflow.com/questions/50159/show-all-libraries-used-by-executables-on-linux | |
find /bin -type f -perm /a+x -exec ldd {} \; \ | |
| grep so \ | |
| sed -e '/^[^\t]/ d' \ | |
| sed -e 's/\t//' \ | |
| sed -e 's/.*=..//' \ | |
| sed -e 's/ (0.*)//' \ | |
| sort \ | |
| uniq -c \ | |
| sort -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment