LFCS practice question 4 of 35
Which of the following environment variables overrides or extends the list of directories holding shared libraries?
Full set: 260 questionsThe LDLIBRARYPATH environment variable contains a colon-separated list of directories. The dynamic linker (ld.so) will search these directories for required shared libraries before searching the standard locations specified in /etc/ld.so.conf and the executable's own runpath. This allows users to temporarily override system libraries or test new library versions without altering the system's configuration. It is a powerful tool for development and debugging but should be used with caution in production environments due to its potential to create library conflicts.
A. LDLOADPATH is not a standard environment variable used by the dynamic linker in Linux for this purpose.
B. LDLIBPATH is not the correct name for the standard environment variable used by the Linux dynamic linker.
D. LDSHAREPATH is not a standard environment variable used by the dynamic linker for locating shared libraries.
E. LDRUNPATH is a link-time environment variable used to embed a library search path directly into an executable.
1. The Linux man-pages project. (2021). ld.so(8) — Linux manual page. "LDLIBRARYPATH: A list of directories in which to search for ELF libraries at execution time. The items in the list are separated by colons or semicolons."
2. Ulrich Drepper. (2006). How To Write Shared Libraries. Section 3.1, "The Dynamic Linker". "The user can influence the behavior of the dynamic linker by setting the environment variable LDLIBRARYPATH."
Keep practicing
Take the free LFCS practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other LFCS practice questions
- Question 1Which of the following commands should be added to /etc/bash_profile in order to change t…
- Question 2Which of the following commands reboots the system when using SysV init? (Choose TWO corr…
- Question 3Which of the following tasks can be accomplished using the command date? (Choose TWO corr…
- Question 5Which of the following are syslog facilities? (Choose TWO correct answers.)
- Question 6Which of the following programs uses the hosts.allow file to perform its main task of che…
- Question 7What does the ? symbol within regular expressions represent?
