nerdexam
Linux_Foundation

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.

Submitted by femi9· Apr 18, 2026Essential Commands

Question

Which of the following commands updates the linker cache of shared libraries?

Options

  • Amkcache
  • Bsoconfig
  • Cmkldconfig
  • Dlddconfig
  • Eldconfig

How the community answered

(22 responses)
  • A
    5% (1)
  • C
    5% (1)
  • E
    91% (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.

Amkcache

`mkcache` is not a standard Linux command for updating the linker cache of shared libraries.

Bsoconfig

`soconfig` is not a recognized command for configuring shared libraries or updating the linker cache.

Cmkldconfig

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

Dlddconfig

`lddconfig` is not a standard Linux command; `ldd` is used to print shared library dependencies, but `ldconfig` updates the cache.

EldconfigCorrect

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

#ldconfig#Shared Libraries#Linker Cache

Community Discussion

No community discussion yet for this question.

Full LFCS Practice