In order to find all library dependencies of /usr/bin/foo, which of the following statement is true?
A.
Running ldconfig against /usr/bin/foo will show the required libraries
B.
Running ldd against /usr/bin/foo will show the required libraries
C.
It’s necessary to compile the program again to check the library dependencies of foo.
D.
The ls -la command has to be run in the /usr/bin directory, to show all library dependencies of
foo.
E.
Library dependencies are shown in the /usr/lib directory.
Explanation:
From the man pages:
ldd prints the shared libraries required by each program or shared library specified on the command
line.
B.
Running ldd against /usr/bin/foo will show the required libraries