A system administrator compiles a custom version of an essential shared library required by commands in /bin and /sbin. After installation, those commands fail to run before the root filesystem is fully mounted. Which directory should the administrator install the new library in to make it available during early boot?
The directory designated for essential shared libraries used by programs in /bin and /sbin is /lib. Libraries placed here are available before the root filesystem is mounted. The /usr/lib directory holds noncritical libraries for applications under /usr, which may not be accessible during early boot. The /usr/local/lib directory is for locally installed software and may also reside on a mount that isn’t available at boot. The /lib64 directory is used on 64-bit multiarch systems, but on a single-architecture 64-bit installation, /lib often symlinks to /lib64; however, the standardized path for essential libraries remains /lib.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What types of libraries are stored in /lib and why are they important during boot?
Open an interactive chat with Bash
Why is /usr/lib not suitable for early boot operations?