/proc filesystem

A virtual folder the Linux kernel fills with live information about processes and the system.

In more detail

Nothing in /proc is on disk: reading /proc/self/ns lists the namespaces of the reading process, and /proc/1/status describes PID 1. Tools such as ps read their data from here.

Examples

readlink /proc/self/ns/pid
Nothing in /proc is stored on disk: each numbered directory describes the process with that PID, and files such as /proc/cmdline and /proc/meminfo describe the running kernel. Contents can change between two reads because they reflect live state. Tools such as ps read their data from here.
cat /proc/cmdline prints the kernel command line the machine booted with.

Related terms

Taught in

References

Certification courses