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.