View libraries used by programs or processes on Linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.