Which of the following commands will check if the library lib123.so.1 is currently in the library cache?
The ldconfig -p | grep lib123.so.1 command will check if the library lib123.so.1 is currently in the library cache. The ldconfig -p portion of the command prints out the library cache information, including the libraries in the cache. The STDOUT from this command is piped into the grep utility so it can search for the lib123.so.1 library, and if the library is displayed, it IS in the cache.
Which of the following will let you view the current library cache?
ldconfig
ldconfig –list
Correct selection
ldconfig -p
ldconfig -i
ldconfig -v
Correct selection
ldconfig -vN
Overall explanation
The ldconfig -vN command will let you view the current library cache. The -v option is to make the output verbose, and the -N option tells the ldconfig command not to rebuild the library cache. Also the ldconfig -p command prints out library cache information.
Which of the following commands will properly update the library path environment variable?
The export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:newLibDir command will properly update the library path environment variable, which is LD_LIBRARY_PATH.
Which of the following is true concerning a library cache?
The library cache is used for quickly loading programs, and not installing them. And the library cache can be viewed.
Which of the following is a typical location for a library file?
The /lib, /lib64, and /usr/lib directory trees are all typical locations for a library file.