Sysfs

sysfs is a virtual filesystem. It exports information about devices and drivers and is also used for configuration. It's generated by the kernel and always mounted at.

Usage

 * Use cat to read the information, e.g. output the charging level of a battery:


 * To set values at runtime - if possible - use echo, e.g. to enable system suspension:


 * To set values at boot time - if possible - create a local.d script.