LFCS · Question #745
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. The ldconfig command is used to create the necessary links and cache to the most recent shared libraries found in standard directories, ensuring dynamic loaders can find them.
Question
Options
- AIdconfig
- BIdd
- Clibpath
- Dnewlibs
How the community answered
(38 responses)- A89% (34)
- B3% (1)
- C3% (1)
- D5% (2)
Why each option
The `ldconfig` command is used to create the necessary links and cache to the most recent shared libraries found in standard directories, ensuring dynamic loaders can find them.
The `ldconfig` command inspects standard library directories and the paths specified in `/etc/ld.so.conf` to configure dynamic linker run-time bindings. After installing new shared libraries, `ldconfig` must be run to update the `ld.so.cache` file, which the dynamic linker uses to locate shared libraries efficiently.
`ldd` is used to print shared library dependencies of a program, not to update the cache.
`libpath` is not a standard Linux command for managing shared library caches; `LD_LIBRARY_PATH` is an environment variable.
`newlibs` is not a standard Linux command for updating shared library caches.
Concept tested: Linux shared library cache management
Source: https://learn.microsoft.com/en-us/windows-server/administration/linux-reference/linux-commands/ldconfig
Topics
Community Discussion
No community discussion yet for this question.