FreeKB - Linux Commands ldd (shared libraries)
Linux Commands - ldd (shared libraries)

A shared library is a file that can be used by numerous programs. The ldd command can be used to list the shared libraries required by a certain program. In this example, there are 4 shared library files used by bash.

[root@server1 ]# ldd /bin/bash => (0x0059100) => /lib/ => /


Determine unused dependencies

The -u or --unused option can be used to determine if any of the shared library files are not being used. In this example, the /lib/ is not being used by bash.

[root@server1 ]# ldd -u /bin/bash


Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter 7a286 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |