Proc is known as a virtual file system, which is a control center that can change some of these files to alter the kernel running state,
It is also the kernel to provide us with the query center, the user can view the system hardware and the current running process information.
The data source for many of the tools in Linux is the content in the proc directory, such as Lsmod's command, which is the Cat/proc/modules alias.
Introduction to Common Files in/proc directory:
- The first three columns of/proc/loadavg store the average load for the last 1 minutes, 5 minutes, and 15 minutes respectively.
- /proc/meminfo Current Memory usage information
- /proc/diskstats disk I/O statistics list
- /proc/net/dev network inflow and outflow statistics
- /proc/filesystems Supported file Systems
- /proc/cpuinfo detailed information about the CPU
- /proc/cmdline boot parameters that are passed to the kernel at startup, typically passed by grub
- /proc/mounts system currently hanging on the file system
- /proc/uptime System Run Time
- /poc/version the current running kernel version number and other information
Introduction to Common Files in the process directory
CmdLine, save the Start command for the current process
CWD: A symbolic link that executes the running directory of the process
Exe:exe is a soft link that points to the executable file of the process through which it can start a copy of the current process
Environ: The environment variable associated with the current process.
FD: Contains the file descriptor for each file that the process opens, which is a symbolic link to the actual file. Deleted files can be recovered by it
Introduction to the/proc directory under Linux