Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I'm using Linux.

share|improve this question

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

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

2 Answers 2


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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.