Yesterday I discovered a cool program called
ldd that ships with the GNU C library.
ldd prints the shared libraries used by a program.
ldd /usr/bin/which, for example, returns:
I found this helpful when setting up a
chroot environment — it’s a quick way to find out which libraries need to be copied over.