The /proc Filesystem
/proc is one of Linux's most ingenious designs. It's a virtual filesystem — nothing in it is stored on disk. The kernel generates file contents on the fly when you read them. Every tool you use for monitoring (top, ps, free) reads from /proc.
Per-Process Information — /proc/PID/
Every running process has its own directory at /proc/PID/:
System-Wide Information
| File | What it shows |
|---|---|
| /proc/cpuinfo | CPU model, cores, flags, clock speed |
| /proc/meminfo | RAM: total, free, available, cached, swap |
| /proc/loadavg | 1/5/15 min load average + running/total processes |
| /proc/uptime | Seconds since boot, seconds idle |
| /proc/stat | CPU time breakdown, context switches, interrupts, boot time |
| /proc/diskstats | Per-disk I/O counters (reads, writes, time spent) |
| /proc/net/dev | Per-interface network stats |
| /proc/interrupts | Per-CPU interrupt counts by IRQ |
/proc/sys — Kernel Tuning
/proc/sys/. The sysctl command is just a friendly interface to these files.
Key tunable areas: /proc/sys/vm/ (memory behavior), /proc/sys/net/ (networking), /proc/sys/kernel/ (scheduler, core dumps, panic behavior).
Frequently Asked Questions
What will I learn here?
This page covers the core concepts and techniques you need to understand the topic and progress confidently to the next lesson.
How should I use this page?
Start with the overview, then follow the section links to deepen your understanding. Use the table of contents on the right to jump to specific sections.
What should I read next?
Use the navigation below to continue to the next lesson or explore related topics.