Display the names of shared libraries required to run a program.
ldd [options] programs
-v prints the version number of ldd.
-V prints the version number of the dynamic linker (ld.so).
-d relocates functions and reports missing functions.
-r relocates both data and functions and reports missing objects.
The ldd command lets you determine which shared libraries are needed to run the specified programs. For example, to determine what you need to run the Bash shell (/bin/bash), type the following:
ldd /bin/bash libtermcap.so.2 => /lib/libtermcap.so.2 (0x40029000) libdl.so.2 => /lib/libdl.so.2 (0x4002d000) libc.so.6 => /lib/tls/libc.so.6 (0x42000000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)