LPIC-1 Exam 101 v5 (Linux Administrator) — Question 86
What is the purpose of the ldd command?
Answer options
- A. It lists which shared libraries a binary needs to run.
- B. It installs and updates installed shared libraries.
- C. It turns a dynamically linked binary into a static binary.
- D. It defines which version of a library should be used by default.
- E. It runs a binary with an alternate library search path.
Correct answer: A
Explanation
The ldd command is used to display the shared libraries required by a binary, making option A the correct answer. Options B, C, D, and E describe functions that are not related to the ldd command; they involve installing, updating, or altering binaries rather than listing their dependencies.