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 ๐ธ
/sys/block/โ seesys_block(5)./sys/bus/โ seesys_bus(5)./sys/class/โ seesys_class(5)./sys/dev/โ seesys_dev(5)./sys/devices/โ seesys_devices(5)./sys/firmware/โ seesys_firmware(5)./sys/fs/โ seesys_fs(5)./sys/hypervisor/โ seesys_hypervisor(5)./sys/kernel/โ seesys_kernel(5)./sys/module/โ seesys_module(5)./sys/power/โ seesys_power(5).
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.rstand various other files inDocumentation/ABIandDocumentation/*/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
- Copyright 2017, Michael Kerrisk <mtk.manpages@gmail.com>
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms