Interview Prep/Linux/Filesystem Hierarchy, Inodes & Links

What are /proc and /sys?

BeginnerConceptFilesystem Hierarchy, Inodes & Links
Answer

Both are virtual filesystems generated by the kernel; nothing is stored on disk. /proc exposes process info (/proc/<pid>/) and kernel state (/proc/meminfo, /proc/cpuinfo, /proc/sys/ for tunables). /sys (sysfs) exposes the device and driver model in a structured way, for example /sys/block/sda/queue/scheduler or /sys/class/net/eth0/.

All Linux questions Roadmap: Linux

More on Filesystem Hierarchy, Inodes & Links