LX0-103 · Question #145
Which system administration command you can use to update Id.so.cache after the installation of new shared libraries?
The correct answer is A. Idconfig. ldconfig updates /etc/ld.so.cache so the dynamic linker can locate newly installed shared libraries at runtime.
Question
Which system administration command you can use to update Id.so.cache after the installation of new shared libraries?
Options
- AIdconfig
- BIdd
- Clibpath
- Dnewlibs
How the community answered
(48 responses)- A90% (43)
- B2% (1)
- C6% (3)
- D2% (1)
Why each option
ldconfig updates /etc/ld.so.cache so the dynamic linker can locate newly installed shared libraries at runtime.
ldconfig scans standard library directories (/lib, /usr/lib) and all paths listed in /etc/ld.so.conf for shared libraries. It then rebuilds the /etc/ld.so.cache binary file so the dynamic linker (ld.so) can quickly resolve library names to file paths at program load time. Running ldconfig is required after installing new shared libraries to make them visible to executables without a reboot.
ldd prints the shared object dependencies of an existing executable but does not modify or regenerate the dynamic linker cache.
libpath is not a standard Linux command and plays no role in shared library cache management.
newlibs is not a valid Linux system administration command and does not exist in standard Linux distributions.
Concept tested: Updating shared library cache with ldconfig
Source: https://man7.org/linux/man-pages/man8/ldconfig.8.html
Topics
Community Discussion
No community discussion yet for this question.