sysfs
A virtual filesystem mounted at /sys where the kernel exposes devices, drivers and their settings as files.
In more detail
Like /proc, /sys is generated by the kernel and not stored on disk. Each device and driver appears as a directory of small attribute files, such as a network interface's state or a disk's size. Some attributes are writable by root and change kernel behavior immediately, so check what a file controls before writing to it.
Related terms
- /proc filesystem — A virtual folder the Linux kernel fills with live information about processes and the system.
- /dev — The directory holding device nodes: special files through which programs reach disks, terminals and other devices.
- device driver — Kernel code that knows how to operate one kind of hardware and presents it to the rest of the system through a standard interface.
- everything is a file — The Unix design idea that many kinds of objects, such as devices, processes and kernel settings, are reached through the same open, read and write operations as files.
Taught in
- The Filesystem Hierarchy — Linux Fundamentals & Systems Administration
- Everything Is A File: proc, sys And dev — Linux Fundamentals & Systems Administration