Lists the path names of all dependencies (lists dynamic dependencies)
# ldd /usr/bin/ssh
Example:-
labserver:/ # ldd /usr/bin/ssh
/usr/bin/ssh needs:
/usr/lib/libc.a(shr.o)
/usr/lib/libcrypto.a(libcrypto.so.1.0.0)
/usr/lib/libz.a(libz.so.1)
/unix
/usr/lib/libcrypt.a(shr.o)
/usr/lib/libpthreads.a(shr_xpg5.o)
/usr/lib/libpthreads.a(shr_comm.o)
labserver:/ #
Remember that some “.o” files are stored with “.a” files. To examine the contents of a “.a” file use the command: ar -tv E.g.
# ar -tv /usr/lib/libcrypt.a