What Is Linux Sysfs File?
Contents Sysfs Is a Pseudo File System Provided by the Linux Kernel That Exports Information About Various Kernel Subsystems, Hardware Devices, and Associated...
sysfs is a pseudo file system provided by the Linux kernel that exports information about various kernel subsystems, hardware devices, and associated device drivers from the kernel’s device model to user space through virtual files.
What is the use of sys folder?
/sys is an interface to the kernel. Specifically, it provides a filesystem-like view of information and configuration settings that the kernel provides, much like /proc . Writing to these files may or may not write to the actual device, depending on the setting you’re changing.
Must Read
What is the difference between SYS and Proc?
what is the actual difference between /sys and /proc directories? Roughly, proc exposes process information and general kernel data structures to userland. sys exposes kernel data structures that describe hardware (but also filesystems, SELinux, modules etc).