Question: I would like to know when I call a specific executable files loaded at runtime which shared libraries. Is there a way to clear the Linux shared library executables or running process dependencies?
View executable shared library dependencies
To find a particular executable dependent libraries, you can use the ldd command. This command calls the dynamic linker to find a program library file dependencies.
$ Ldd / path / to / program
note! It does not recommend any third-party untrusted executables run ldd, because some versions of ldd may directly call the executable program to clarify its library dependencies, so that may be unsafe.
Instead, use a more secure way to display an unknown application binary library file dependency, use the following command:
$ Objdump -p / path / to / program | grep NEEDED
View running processes shared library dependencies
If you want to find is a running process to load shared libraries, you can use pldd command, which will show at run time is loaded in a process all shared objects.
$ Sudo pldd < PID>
Note that you need root privileges to perform pldd command.
Alternatively, you can select a pmap command-line tool is called. It reports the memory map of a process, but also to show the process of running the library dependencies.
$ Sudo pmap < PID>