How to get a list of running libs

Post tutorials, HOWTO's and other useful resources here.
fulalas
DEV Team
DEV Team
Posts: 2050
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

How to get a list of running libs

Post#1 by fulalas » 26 Apr 2017, 06:05

I'm playing around with a completely new LXQt module (using Arch builds, so we don't need to wait for Slackware repositories) and I've found a very useful command to check all running libs:

Code: Select all

sudo lsof | grep mem | grep "\.so"| awk '{print $9}'| sort| uniq
This is especially useful when you're trying to clean a module bloated with unused libs -- of course, before running this command you should keep all desired programs running at the same time. :good:

And If you just want to know which applications are using a given lib:

Code: Select all

lsof | grep libName.so