nerdexam
CompTIA

LX0-103 · Question #145

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. ldconfig updates /etc/ld.so.cache so the dynamic linker can locate newly installed shared libraries at runtime.

Linux Installation and Package Management

Question

Which system administration command you can use to update Id.so.cache after the installation of new shared libraries?

Options

  • AIdconfig
  • BIdd
  • Clibpath
  • Dnewlibs

How the community answered

(48 responses)
  • A
    90% (43)
  • B
    2% (1)
  • C
    6% (3)
  • D
    2% (1)

Why each option

ldconfig updates /etc/ld.so.cache so the dynamic linker can locate newly installed shared libraries at runtime.

AIdconfigCorrect

ldconfig scans standard library directories (/lib, /usr/lib) and all paths listed in /etc/ld.so.conf for shared libraries. It then rebuilds the /etc/ld.so.cache binary file so the dynamic linker (ld.so) can quickly resolve library names to file paths at program load time. Running ldconfig is required after installing new shared libraries to make them visible to executables without a reboot.

BIdd

ldd prints the shared object dependencies of an existing executable but does not modify or regenerate the dynamic linker cache.

Clibpath

libpath is not a standard Linux command and plays no role in shared library cache management.

Dnewlibs

newlibs is not a valid Linux system administration command and does not exist in standard Linux distributions.

Concept tested: Updating shared library cache with ldconfig

Source: https://man7.org/linux/man-pages/man8/ldconfig.8.html

Topics

#shared libraries#ldconfig#dynamic linker#package management

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice