ld.so.conf(5) File Formats Manual ld.so.conf(5)

ld.so.conf - ld.so configuration file

/etc/ld.so.conf

This file contains a list of directories, one per line, in which to search for libraries.

The file is parsed by ldconfig(8) and the results stored in /etc/ld.so.cache.

The syntax allows lines to start with the keyword include followed by a glob(7) pattern. Files matching that pattern will be processed as if their contents were included at that point.

/etc/ld.so.conf

Example config file:


/lib
/usr/lib
/usr/local/lib
include /etc/ld.so.conf.d/*.conf

ld.so(8), ldconfig(8)

2026-08-23 Linux man-pages 6.19