CompTIA Linux+ (XK0-004) — Question 163
A systems administrator manually added a new library to the server. The administrator wants to rebuild the library cache for immediate use.
Which of the following commands should the systems administrator run to achieve this goal?
Answer options
- A. make install
- B. ldconfig
- C. make
- D. ldd
Correct answer: B
Explanation
The correct command is 'ldconfig', as it updates the shared library cache in Linux systems, making the newly added library available for applications. The 'make install' command is used for installing software, 'make' is for compiling source code, and 'ldd' is used to print the shared libraries required by a program, which do not affect the library cache.