sys_class(5)

πŸ“¦ version 6.20, in arch rolling, nixpkgs unstable

πŸ’– NAME πŸ’–

/sys/class/ β€” the device classes directory, and bestie it is so much more organized than the rest of /sys, fr fr


✨ SYNOPSIS ✨

/sys/class/

πŸŽ€ DESCRIPTION πŸŽ€

Okay so picture this: /sys/class/ is this one directory that holds a single layer of subdirectories β€” just one, no nesting drama, no rabbit holes β€” and each of those subdirectories is a device class</> that's been registered on your system. Like terminals, network devices, block devices, graphics devices, sound devices, and so on. The whole squad. πŸ‘‘

Inside each of those class subdirectories? Symbolic links, one for each device hanging out in that class. And here's the plot twist β€” those symlinks don't point at random stuff, they point at entries in the /sys/devices/ directory. So /sys/class/ is basically the cute curated lobby and /sys/devices/ is the actual building where everyone lives. iykyk πŸ¦‹

  • /sys/class/net/ β€” oh you want the networking one specifically? See sys_class_net(5). She got her own whole page, main character energy. πŸ’…

🌈 STANDARDS 🌈

Linux. That's it, that's the standard. 🐧


πŸ•°οΈ HISTORY πŸ•°οΈ

Linux 2.6.0 β€” so like, ancient history in kernel years but still absolutely thriving. ⭐


πŸ‘€ SEE ALSO πŸ‘€


that's the whole page bestie, go forth and ls responsibly 🫢

sending u love from Linux man-pages 6.20, dated 2026-09-09 β€” mwah πŸ’‹

πŸ“¦ 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