nerdexam
CompTIA

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.

Linux Installation and Package Management

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)
  • A
    3% (1)
  • D
    3% (1)
  • E
    95% (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.

Amkcache

`mkcache` is not a standard Linux command for managing the shared library linker cache.

Bsoconfig

`soconfig` is not a standard Linux command and does not exist for this purpose.

Cmkldconfig

`mkldconfig` is not a standard Linux command for updating the linker cache.

Dlddconfig

`lddconfig` is not a standard Linux command - it is a confusion with `ldd` (which lists shared library dependencies of a binary) and `ldconfig`.

EldconfigCorrect

`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

#ldconfig#shared libraries#linker cache#dynamic linking

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice