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

I'm using Linux.

link|improve this question
feedback

migrated from stackoverflow.com Aug 18 '11 at 9:42

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

2 Answers

Try

lsof -p <pid> | grep .so

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

link|improve this answer
feedback

Try

cat /proc/<pid>/maps

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown