/Proc is a virtual file system, that is, the modification will be reinitialized after the reboot
Provides process information, memory resources, hardware devices, kernel memory, and other information.
For example:
NIC:/proc/sys/vm/ipv4/ip_forward: control ip Forwarding
Memory:/proc/sys/vm/drop_caches: Input 1 force the kernel to release some memory from the cache
We recommend that you use strings to view the information, not cat
In my opinion, the greatest value of/proc is:
We can use the relevant files in this directory to compile the gadgets we need.
Currently, many system gadgets use files under/proc.
For example:
Uname ==>/proc/version
Ps top ==>/proc/<PID>
Vmstat free ==>/proc/meminfo/proc/swaps
Ifconfig netstat ==>/proc/net
Recommended reading:
Disk Performance Parameters in proc in Linux
Linux/proc Article 1 ---->/proc/pid
Linux Certification: Linux/proc file system