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.
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)- A2% (1)
- C91% (39)
- D5% (2)
- E2% (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.
LD_LOAD_PATH is not a valid Linux dynamic linker environment variable and is not recognized by ld.so.
LD_LIB_PATH is not a valid environment variable; the correct name includes the word LIBRARY, making this a misnomer.
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.
LD_SHARE_PATH does not exist as a recognized dynamic linker environment variable on Linux.
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
Community Discussion
No community discussion yet for this question.