Google News
logo
Site Reliability Engineer (SRE) - Interview Questions
What is a "/proc" file system?
A “/proc” file system is a special type of file system that has special access permissions. It is mounted in Linux systems when the kernel needs to execute a process or access certain system resources.

A /proc directory contains information about the current state of the system, such as memory usage and CPU speed.

There are three subdirectories under /proc :

/proc/1 : This is the first subdirectory in the /proc directory tree. It contains information about the CPU and its speed.

/proc/1/cmdline : This subdirectory contains the command line parameters passed to the currently running process.

/proc/1/maps : This subdirectory contains virtual memory map data for processes running on Linux systems. It can be used to determine which parts of the memory are being used by which process.
Advertisement