Which of the following commands updates the linker cache of shared libraries?
Click on the arrows to vote for the correct answer
A. B. C. D. E.E
The correct answer is E. ldconfig
.
Explanation:
The ldconfig
command is used to create, update and maintain the linkers runtime binding cache. The cache contains a list of shared libraries that are available on the system and the paths to their locations. This cache is used by the linker to resolve symbols during the linking process.
When a new shared library is installed or an existing one is updated, ldconfig
should be run to update the linker cache with the new or updated library information. This ensures that the linker can locate the correct version of the library at runtime.
Option A, mkcache
, is not a valid command.
Option B, soconfig
, is not a valid command.
Option C, mkldconfig
, is not a valid command.
Option D, lddconfig
, is not a valid command.
Therefore, the correct command to update the linker cache of shared libraries is ldconfig
.