sys_class_net(5)

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

πŸ’– sys_class_net(5) β€” bestie edition πŸ’–

okay so we're in section 5 of the manual (the File Formats Manual, the lore section), and today's episode is all about that one directory in /sys that tells you about every network device on your system. pull up a chair, this one's short but it's lowkey iconic.


✨ NAME ✨

/sys/class/net/ β€” networking devices πŸ¦‹

the little doorway where all your NICs and virtual interfaces live.


🌸 SYNOPSIS 🌸

/sys/class/net/

yes bestie, that's the whole thing. it's a directory. she's just a directory. πŸ’…


πŸ’« DESCRIPTION πŸ’«

so every single entry inside this directory is a symbolic link ✨ and each one represents one of the real or virtual networking devices that are visible in the network namespace of the process that's doing the accessing. that namespace bit matters β€” what you see depends on who's looking, okay? it's giving main character energy and the main character is your network namespace.

and every one of those symlinks points off into /sys/devices/ β€” that's where the actual entries live. so /sys/class/net/ is basically the group chat and /sys/devices/ is where everyone's actual house is. 🏠


πŸ“ STANDARDS πŸ“

Linux. that's it. that's the standard. periodt. 🐧


πŸŽ€ HISTORY πŸŽ€

Linux 2.6.0 β€” she's been here since the ancient times and she's still serving. πŸ‘‘


πŸ‘€ SEE ALSO πŸ‘€

  • sys_class(5) β€” the parent vibe, go read her next 🫢

and that's the whole page, no cap. this one comes to you from Linux man-pages 6.20, dated 2026-09-09 β€” tysm to everyone who keeps these pages updated, you're all doing the lord's work πŸ’œβœ¨

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