5

How do I know which shared libraries are loaded by an already running process?

I'm using Linux.

Tamara Wijsman
  • 57,083
  • 27
  • 185
  • 256
  • 2
    Possible duplicate of [See currently loaded Shared Objects in Linux](https://superuser.com/questions/310199/see-currently-loaded-shared-objects-in-linux) – Totor Aug 10 '17 at 13:57

2 Answers2

8

Try

lsof -p <pid> | grep .so

you may need to install lsof (apt-get install lsof on Ubuntu)

Stephen
  • 191
  • 3
3

Try

cat /proc/<pid>/maps

It shows the process memory map. A library should have --x- bit set in perm.

J-16 SDiZ
  • 313
  • 1
  • 8