sys_class_net(5)
π 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
- 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