The process virtual filesystem, or
procfs, is mounted at
/proc by the kernel during early boot. It allows us to query data about running processes.
/procis its root.
cmdlinecontains the booted kernel command line.
cpuinfolists CPU cores along with stepping, instruction set, and version data.
meminfodetails memory consumption and availability.
mountslists mounted filesystems.
versiondetails kernel build information.
cmdlinecontains the command line used to launch the process.
cwdis a symbolic link to the current working directory of the process.
environlists environment variable key-value pairs (null-terminated).
exeis a link to the executable.
fd/contains links to files with open file descriptors.
fdinfo/contains files describing the open file descriptors.
limitsdescribe process soft and hard limits (managed with
/mapsdescribes mapped memory regions.
/memallows raw access to the virtual memory, and is accessible only via ptrace.
net) contains a link to each process's namespaces, with the filename representing the namespace type.
/rootis a symbolic link to the root path the process sees (which may be a chroot).
/statusdescribes the processes's state.
/taskcontains hard links to any started tasks.