Skip to main content
IBM  
Shop Support Downloads
IBM Home Products Consulting Industries News About IBM
IBM developerWorks : Linux : Education - Tutorials
LPI certification 102 exam prep, Part 1
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
2. Shared libraries
  


Dynamically linked dependencies page 3 of 8


To view a list of all the shared libraries upon which ln depends, use the ldd command:


# ldd /bin/ln
        libc.so.6 => /lib/libc.so.6 (0x40021000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

As you can see, ln depends on the external shared libraries libc.so.6 and ld-linux.so.2. As a rule, dynamically linked programs are much smaller than their statically-linked equivalents. However, statically-linked programs come in handy for certain low-level maintenance tasks. For example, sln is the perfect tool to modify various library symbolic links that exist in /lib. But in general, you'll find that nearly all executables on a Linux system are of the dynamically linked variety.


Main menuSection menuFeedbackPreviousNext
Privacy Legal Contact