Skip to content

Instantly share code, notes, and snippets.

@bmvakili
Created May 23, 2013 23:46
Show Gist options
  • Save bmvakili/5640337 to your computer and use it in GitHub Desktop.
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:
#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