102.3 Manage shared libraries Flashcards
What is a shared library?
A shared library is a file containing functionality that other apps can use.
What is the extension of shared libraries?
.so (shared object)
What quality do .so files have?
They are dynamic shared libraries
What is a file that ends in .a?
It is a statically linked library file
What is a statically linked library file compiled for?
It is compiled for applications that need to make sure that when they call out to a particular function that it is the same version of the function every time it calls it.
What command prints out shared object libraries used by a binary file (an app or program)?
ldd pathtoprogram
What command lists the most recently used libraries?
ldconfig
Which is the configuration file that points to directories and other config files that hold references to library directory locations?
/etc/ld.so.conf
What do the /lib and /lib64 directories contain?
They contain library files that contain code shared to other applications in the system.
What location in the FS can you find shared libraries on?
/lib /usr/lib (for 32bit systems) /usr/lib64 (for 64bit systems) /usr/local/lib /usr/share