The proc directory
The /proc directory is one of the so-called virtual or pseudo filesystems since its contents are not written to disk, but loaded in memory. /proc includes information about:
- Running processes
- Kernel configuration
- System hardware
Here are some of the system's hardware information that can be gathered from /proc:
/proc/cpuinfo: It stores information about the system's CPU.
/proc/cmdline: It stores the strings passed to the kernel on boot.
proc/modules: It shows the list of modules loaded into the kernel.