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
Which command can you use to display which shared libraries a binary uses?
a) ldd
b) ldconfig
c) libdump
ldd
What is the typical extension of shared libraries in Linux?
a) .so
b) .lib
c) .dll
.so
How can you add a new library path to the system?
a) Edit /etc/ld.so.conf and run ldconfig
b) Use ldd with the new path
c) Edit /etc/ldconfig.conf
Edit /etc/ld.so.conf and run ldconfig
Which command clears the shared library cache?
a) ldconfig -r
b) libclear
c) ldconfig –clear
ldconfig -r
What is the primary role of ‘libc’ in Linux?
a) Standard C library
b) Shared memory manager
c) Kernel interface
Standard C library
What is a common reason for ‘library not found’ errors?
a) Incorrect library paths
b) Missing binary file
c) Permission issues
Incorrect library paths
Which command removes a shared library?
a) rm <library>
b) libremove
c) unlink <library></library></library>
rm <library></library>
Which of the following is a dynamically linked library?
a) libm.so
b) libm.a
c) libc.a
libm.so
What is the command to print the current shared library paths?
a) ldconfig -p
b) ldd –paths
c) printlibs
ldconfig -p