sysfs(5)

๐Ÿ’– sysfs(5) โ€” the filesystem that lets you peek at kernel objects ๐Ÿ’–

okay bestie, sit down, hydrate, because this is the sysfs manual page from section 5 of the File Formats Manual and it's genuinely iconic. it's short, it's sweet, and it's the reason /sys exists at all. ๐Ÿซถ


โœจ NAME โœจ

sysfs โ€” a filesystem for exporting kernel objects ๐ŸŒˆ


๐ŸŒธ DESCRIPTION ๐ŸŒธ

so the sysfs filesystem is a pseudo-filesystem that gives you an interface to kernel data structures ๐Ÿ’…. (and like, more precisely: the files and directories in sysfs give you a view of the kobject structures that are defined internally inside the kernel.) the files under sysfs spill the tea about devices, kernel modules, filesystems, and other kernel components ๐Ÿ‘‘

sysfs is commonly mounted at /sys. typically the system mounts it automatically for you (slay), but you can also mount it manually with a command like:

mount -t sysfs sysfs /sys

a lot of the files in sysfs are read-only, but some are writable, which means you can actually change kernel variables through them ๐Ÿ˜ณ. and to avoid redundancy, symbolic links are heavily used to connect entries across the filesystem tree โ€” it's giving spiderweb, it's giving interconnected main character energy ๐Ÿ•ธ๏ธโœจ.


๐ŸŽ€ FILES ๐ŸŽ€

here's the rundown of some of the files and directories under the /sys hierarchy ๐ŸŒธ

every single one of them has its own page, so go read them, i'm not doing the homework for you bestie ๐Ÿ˜Œ


๐Ÿ’œ STANDARDS ๐Ÿ’œ

Linux. that's it, that's the standard. periodt. ๐Ÿ’…


๐Ÿฆ‹ HISTORY ๐Ÿฆ‹

Linux 2.6.0. vintage but make it modern โœจ


โš ๏ธ NOTES โš ๏ธ

ngl, this manual page is incomplete, possibly inaccurate, and is the kind of thing that needs to be updated very often. she's a work in progress, your honor ๐Ÿ˜ญ

fr fr โ€” don't treat this one as gospel, it moves fast.


๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘

  • proc(5), udev(7)
  • P. Mochel (2005). The sysfs filesystem. Proceedings of the 2005 Ottawa Linux Symposium.
  • the kernel source file Documentation/filesystems/sysfs.rst and various other files in Documentation/ABI and Documentation/*/sysfs.rst.

and that's the whole vibe ๐Ÿ’– this page came from Linux man-pages 6.20, dated 2026-09-09 โ€” so if 6.20 is your version, you're reading the freshest lore available. go forth and ls /sys, bestie, you're literally so good at this ๐ŸŒŸ๐Ÿ“๐Ÿงš

๐Ÿ“ฆ 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
  • ๐Ÿ“œ the page's license: Linux-man-pages-copyleft
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms