LX0-103 · Question #3
Which of the following commands updates the linker cache of shared libraries?
The correct answer is E. ldconfig. The ldconfig command updates the dynamic linker's cache of shared libraries, ensuring newly installed libraries are discoverable at runtime. The other listed commands do not exist as standard Linux utilities.
Question
Which of the following commands updates the linker cache of shared libraries?
Options
- Amkcache
- Bsoconfig
- Cmkldconfig
- Dlddconfig
- Eldconfig
How the community answered
(37 responses)- A3% (1)
- D3% (1)
- E95% (35)
Why each option
The `ldconfig` command updates the dynamic linker's cache of shared libraries, ensuring newly installed libraries are discoverable at runtime. The other listed commands do not exist as standard Linux utilities.
`mkcache` is not a standard Linux command for managing the shared library linker cache.
`soconfig` is not a standard Linux command and does not exist for this purpose.
`mkldconfig` is not a standard Linux command for updating the linker cache.
`lddconfig` is not a standard Linux command - it is a confusion with `ldd` (which lists shared library dependencies of a binary) and `ldconfig`.
`ldconfig` scans the directories listed in `/etc/ld.so.conf` and standard library paths, then regenerates the shared library cache file `/etc/ld.so.cache`. This cache is read by the dynamic linker (`ld.so`) at runtime to quickly resolve shared library dependencies. It must be run as root after installing new shared libraries to make them available to programs.
Concept tested: Updating the dynamic linker shared library cache
Source: https://man7.org/linux/man-pages/man8/ldconfig.8.html
Topics
Community Discussion
No community discussion yet for this question.