Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

I'm using Linux.

share|improve this question

migrated from Aug 18 '11 at 9:42

This question came from our site for professional and enthusiast programmers.


lsof -p <pid> | grep .so

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

share|improve this answer


cat /proc/<pid>/maps

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

share|improve this answer

You must log in to answer this question.