Introduction to Linux I

Introduction to Linux I Chapter 26 Exam Answer 2016

1. Which two directories are automatically searched for shared libraries?. (choose two)

  • /lib
  • /usr/lib
  • /usr/library
  • /library

2. Which command is used to display the shared libraries of a dynamically linked executable?

  • ldlist
  • ldd
  • ld.so
  • ldconfig

3. Which command can an administrator run to rebuild the cache of shared libraries?

  • ldd
  • ldlist
  • ld.so
  • ldconfig

4. Which environment variable can a user set, that will affect where shared libraries can be located and loaded?

  • LD_LIBRARY_PATH
  • LIBRARY_PATH
  • LD_PATH
  • LIBRARY_LD_PATH

5. Which of the following are benefits of a shared library:. (choose two)

  • Programs run slower
  • Programs can be smaller
  • Programs run faster
  • Programs use a more consistent base of code

6. Which of the following will find and load shared libraries when a program is executed?

  • The kernel
  • The dynamic linker
  • The scheduler
  • The init process

7. Which of the following contents is in the ldconfig configuration file by default?

  • include ld.so.conf.d/*.conf
  • include ldconfig
  • include /etc/ldconfig
  • include all

8. Which of the following commands would display the libraries used by the /bin/ls command?

  • ls -lib /bin/ls
  • ldconfig /bin/ls
  • listlib /bin/ls
  • ldd /bin/ls

9. If a library is not accessible due to an error, the the ldd would report which error message?

  • lib missing
  • error: lib not configured
  • library missing
  • not found

Related Articles

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
Back to top button