Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

sysfs

📅 2020-Dec-02 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ motherboard, sysfs ⬩ 📚 Archive

sysfs is a pseudo-filesystem that is used by the Linux kernel to share information and data structures from the kernel that might be useful to tools and users. This is typically found mounted at /sys and I typically use it to get information about the devices connected to my computer.

$ man 5 sysfs
$ ls -1 /sys/devices/virtual/dmi/id/board_*
/sys/devices/virtual/dmi/id/board_asset_tag
/sys/devices/virtual/dmi/id/board_name
/sys/devices/virtual/dmi/id/board_serial
/sys/devices/virtual/dmi/id/board_vendor
/sys/devices/virtual/dmi/id/board_version

$ cat /sys/devices/virtual/dmi/id/board_vendor
ASRock

$ cat /sys/devices/virtual/dmi/id/board_name
X99 Extreme4

Tried with: Ubuntu 18.04