ldd

From RaySoft

ldd prints the shared libraries required by each program or shared library specified on the command line.[1]

Documentation

Syntax

ldd [PARAMETER ...] FILE [...]

Parameters

-u, --unused
Print unused direct dependencies.
-v, --verbose
Print all information, including e.g. symbol versioning information.

Examples

Show linked libraries by ls
ldd '/bin/ls'

Output:

librt.so.1 => /lib64/librt.so.1 (0x0000003281800000)
libacl.so.1 => /lib64/libacl.so.1 (0x0000003282400000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003281400000)
libc.so.6 => /lib64/libc.so.6 (0x000000327fc00000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003280400000)
/lib64/ld-linux-x86-64.so.2 (0x000000327f800000)
libattr.so.1 => /lib64/libattr.so.1 (0x0000003285400000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003280000000)
libsepol.so.1 => /lib64/libsepol.so.1 (0x0000003281000000)

References

  1. man 1 'ldd'