102.3 Flashcards
Which command is used to display shared library dependencies?
a) ldd
b) ldconfig
c) libcheck
ldd
Where are the default shared libraries typically stored?
a) /lib and /usr/lib
b) /var/lib
c) /usr/local/lib
/lib and /usr/lib
What command is used to update the shared library cache?
a) ldconfig
b) ldd
c) libconfig
ldconfig
Which file lists the directories containing shared libraries?
a) /etc/ld.so.conf
b) /usr/lib.conf
c) /etc/lib.conf
/etc/ld.so.conf
What does the LD_LIBRARY_PATH environment variable specify?
a) Locations of additional shared libraries
b) Default system library path
c) Shared libraries cache file
Locations of additional shared libraries
How can you force the system to reload the shared library cache?
a) ldconfig -v
b) ldd –reload
c) ldconfig -f
ldconfig -v
What is the role of /etc/ld.so.cache?
a) Stores cached information about shared libraries
b) Lists all shared libraries
c) Defines paths for shared libraries
Stores cached information about shared libraries
How can you check the version of the GNU C library?
a) ldd –version
b) glibc –check
c) libversion
ldd –version
Which environment variable can override the default search path for shared libraries?
a) LD_LIBRARY_PATH
b) LIB_CONFIG_PATH
c) SHARED_LIB_PATH
LD_LIBRARY_PATH
What does the term ‘soname’ refer to?
a) A specific version of a shared library
b) Library configuration file
c) Library search path
A specific version of a shared library
Which directory is primarily used for 64-bit shared libraries?
a) /lib64
b) /lib
c) /usr/lib64
/lib64
What command can list all the currently loaded shared libraries?
a) ldconfig -p
b) ldd –list
c) liblist
ldconfig -p
Which option of the ‘ldd’ command prevents execution of shared libraries?
a) –verbose
b) –version
c) –warn
–warn
What is the main purpose of shared libraries?
a) To reduce memory usage by sharing common code
b) To store compiled binaries
c) To organize program files
To reduce memory usage by sharing common code
Which file defines the default library load paths?
a) /etc/ld.so.conf
b) /lib/ld.conf
c) /usr/ld.conf
/etc/ld.so.conf