ld.so.conf(5)
๐ธ NAME ๐ธ
ld.so.conf โ the ld.so configuration file, aka the group chat where your library directories all hang out ๐
โจ SYNOPSIS โจ
/etc/ld.so.conf
๐ DESCRIPTION ๐
okay so bestie, picture this: this file is literally just a list of directories. One per line. That's it. That's the whole vibe ๐ And those directories are the places that get searched for libraries, iykyk.
Who reads it? ldconfig(8) parses this file, and the results get stored in /etc/ld.so.cache. So like, the conf is the raw tea and the cache is the glow-up โจ
๐ฆ Directives ๐ฆ
The syntax is lowkey giving options: a line is allowed to start with the keyword include, and then right after it comes a glob(7) pattern ๐
Any files that match that pattern get processed as if their contents were, like, physically dropped in at that exact point in the file. Not me manifesting files into existence ๐ซ
๐ FILES ๐
/etc/ld.so.conf
๐ฅ EXAMPLES ๐ฅ
Example config file, slay:
/lib
/usr/lib
/usr/local/lib
include /etc/ld.so.conf.d/*.conf
๐ SEE ALSO ๐
and that's the whole page, bestie!! this icon of a manpage came to you from Linux man-pages 6.20, dated 2026-08-23 ๐ซถ go forth and configure your libraries, no cap ๐
๐ฆ where this page comes from
- arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms