Ldd/path/to/program
To find out which libraries a particular executable depends on, you can use the LDD command. This command invokes the dynamic linker to find the library file dependencies of the program.
Objdump-p/path/to/program | grep NEEDED
Attention! It is not recommended to run LDD for any untrusted third-party executable program, because some versions of LDD may call an executable program directly to clarify its library file dependencies, which may not be secure. Instead, a more secure way to display the library file dependencies of an unknown application binary file.
PLDD 1100
If you want to find a shared library that is loaded by a running process, you can use the PLDD command, which shows all the shared objects that were loaded into a process at run time. Note that you need root permission to execute the PLDD command.
PMAP 1100
Alternatively, you can choose a command-line tool called Pmap. It reports the memory mapping of a process and also shows the library file dependencies of the running process.
View libraries used by programs or processes on Linux