How to list all shared libraries currently loaded in memory

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • udang

    #1

    How to list all shared libraries currently loaded in memory

    Hi,

    I am using Linux and I need to find all the shared libraries that have been currently loaded in memory. Is there a way to list all of them ...

    Please correct me if I am wrong .... The command "ldd" can tell what shared libraries needed by app-name, and the lsof lists loaded shared libraries for each pid ...

    Is there any way to find all shared libraries currently loaded in systgem memory ?

    Thanks,

    TD
  • ashitpro
    Recognized Expert Contributor
    • Aug 2007
    • 542

    #2
    try,
    lsof | grep lib

    Comment

    • udang

      #3
      Thanks ..
      I tried the following and it work fine for me:
      sudo lsof | grep mem | grep "\.so"| awk '{print $9}'| sort| uniq

      Thanks

      TD

      Comment

      Working...