Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the ldd command in linux to print the shared library that the program depends on

Shulou Source: shulou.com Published: 2022-06-02 20:09:08 10月04日 Update

This article mainly introduces the use of linux ldd command print program depends on the shared library, the article is very detailed, has a certain reference value, interested friends must read it!

The ldd command is used to print a list of shared libraries on which a program or library file depends.

Syntax format: ldd [parameters] [file]

Common parameters:

-v detail mode, print all relevant information-u print unused direct dependencies-d perform relocation and report any missing objects-r perform relocation of data objects and functions, and report any missing objects and functions-help display help information

Reference example

Displays the shared libraries on which the command depends:

[root@linuxcool ~] # ldd / bin/vimlinux-vdso.so.1 = > (0x00007ffe3dbc1000) libm.so.6 = > / lib64/libm.so.6 (0x00007f17a5b55000) libselinux.so.1 = > / lib64/libselinux.so.1 (0x00007f17a592e000) libtinfo.so.5 = > / lib64/libtinfo.so.5 (0x00007f17a5704000) these are all the contents of the shared library that the program depends on using the ldd command in linux. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Commands programs information objects content functions parameters reports references positioning help value interests examples guys buddies commonly used library files data files Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Microsoft Docker NVidia Huawei