MODULES(5)

๐Ÿ“ฆ version 30+20221128, in debian bookworm, ubuntu jammy

๐Ÿ’– MODULES(5) ๐Ÿ’–

ok so bestie, gather round, we're talking about /etc/modules โ€” the iconic little file that tells your kernel which modules to load at boot time. this is a File Formats Manual moment, and honestly? it's giving main character energy. ๐ŸŽ€


โœจ NAME โœจ

/etc/modules โ€” kernel modules to load at boot time ๐Ÿฆ‹


๐ŸŒธ DESCRIPTION ๐ŸŒธ

so here's the tea, bestie: the /etc/modules file contains the names of kernel modules that are gonna be loaded at boot time. and the way that it works is one per line โ€” literally one module name per line, no chaos, no drama, just vibes. ๐Ÿ’…

ok but here's the part you need to know, and i mean it: options can only be specified using modprobe.d configuration files. like. you can NOT just shove options in here. that's not this file's job. /etc/modules is for names, modprobe.d is for options. know the difference, it's important. ๐Ÿซถ

and lastly โ€” lines beginning with a # are ignored. so go off, write your little comments, nobody's judging, they're just โœจignoredโœจ. ๐ŸŽ€


๐ŸŒˆ EXAMPLE ๐ŸŒˆ

here's exactly what it looks like, no cap:

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that
# should be loaded at boot time, one per line. Lines
# beginning with "#" are ignored.

w83781d

3c509
nf_nat_ftp

see? cute, clean, one module per line, comments doing their thing. slay. ๐Ÿ’–


๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘


and that's the whole page, bestie!! this came to you straight from Debian GNU/Linux, Version 1.2, and it's the MODULES(5) era โ€” obsessed. go forth and load your modules responsibly. periodt. ๐Ÿ’œโœจ

๐Ÿ“ฆ where this page comes from