ld.so.conf(5)

๐Ÿ“ฆ
version 6.20 ยท 3 versions
, in arch rolling, nixpkgs unstable

๐ŸŒธ 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 ๐Ÿ‘‘

ld.so(8), ldconfig(8)


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