LFCS · Question #816
Which of the following commands updates the linker cache of shared libraries?
The correct answer is E. ldconfig. The ldconfig command is used to create, update, and maintain the shared library cache, which the dynamic linker uses to find shared libraries quickly.
Question
Options
- Amkcache
- Bsoconfig
- Cmkldconfig
- Dlddconfig
- Eldconfig
How the community answered
(22 responses)- A5% (1)
- C5% (1)
- E91% (20)
Why each option
The `ldconfig` command is used to create, update, and maintain the shared library cache, which the dynamic linker uses to find shared libraries quickly.
`mkcache` is not a standard Linux command for updating the linker cache of shared libraries.
`soconfig` is not a recognized command for configuring shared libraries or updating the linker cache.
`mkldconfig` is not a standard Linux command; the correct command for updating the linker cache is `ldconfig`.
`lddconfig` is not a standard Linux command; `ldd` is used to print shared library dependencies, but `ldconfig` updates the cache.
The `ldconfig` command is responsible for creating the necessary links and cache to the most recent shared libraries found in standard directories and those specified in `/etc/ld.so.conf`, which the dynamic linker `ld.so` uses at runtime.
Concept tested: Shared library cache management
Source: https://man7.org/linux/man-pages/man8/ldconfig.8.html
Topics
Community Discussion
No community discussion yet for this question.