nerdexam
CompTIA

LX0-103 · Question #9

Which of the following environment variables overrides or extends the list of directories holding shared libraries?

The correct answer is C. LD_LIBRARY_PATH. LD_LIBRARY_PATH is the standard Linux environment variable used to override or extend the runtime linker's search path for shared libraries.

Linux Installation and Package Management

Question

Which of the following environment variables overrides or extends the list of directories holding shared libraries?

Options

  • ALD_LOAD_PATH
  • BLD_LIB_PATH
  • CLD_LIBRARY_PATH
  • DLD_SHARE_PATH
  • ELD_RUN_PATH

How the community answered

(43 responses)
  • A
    2% (1)
  • C
    91% (39)
  • D
    5% (2)
  • E
    2% (1)

Why each option

LD_LIBRARY_PATH is the standard Linux environment variable used to override or extend the runtime linker's search path for shared libraries.

ALD_LOAD_PATH

LD_LOAD_PATH is not a valid Linux dynamic linker environment variable and is not recognized by ld.so.

BLD_LIB_PATH

LD_LIB_PATH is not a valid environment variable; the correct name includes the word LIBRARY, making this a misnomer.

CLD_LIBRARY_PATHCorrect

LD_LIBRARY_PATH is the well-established environment variable recognized by the dynamic linker (ld.so) on Linux systems. When set, the colon-separated list of directories it contains is searched before the default system paths, allowing users to point the linker to custom or updated shared library locations at runtime.

DLD_SHARE_PATH

LD_SHARE_PATH does not exist as a recognized dynamic linker environment variable on Linux.

ELD_RUN_PATH

LD_RUN_PATH is a build-time hint used by some linkers to embed an rpath into an executable, not a runtime override for shared library search directories.

Concept tested: Linux dynamic linker shared library path override

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

Topics

#LD_LIBRARY_PATH#shared libraries#environment variables#dynamic linker

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice