nerdexam
ExamsLX0-103Questions#9
CompTIA

LX0-103 · Question #9

LX0-103 Question #9: Real Exam Question with Answer & Explanation

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

Explanation

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

Common mistakes.

  • A. LD_LOAD_PATH is not a valid Linux dynamic linker environment variable and is not recognized by ld.so.
  • B. LD_LIB_PATH is not a valid environment variable; the correct name includes the word LIBRARY, making this a misnomer.
  • D. LD_SHARE_PATH does not exist as a recognized dynamic linker environment variable on Linux.
  • E. 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

Reference. 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