I. Process-related informationThe/proc directory contains a number of digitally named subdirectories that represent the process number of the process that the system is currently running, containing multiple information files related to the corresponding process
The structure is as follows:
process-related information is as follows:
Some of the information below
CmdLine:
Maps:
process-related information:
+ /proc/pid/cmdline contains a list of parameters for a process
+ Environment of the/proc/pid/environ process
+ Address mapping information for the/PROC/PID/MAPS process
+ /proc/pid/stat contains a large number of process states and statistical information
+ /PROC/PID/STATM contains memory usage information for the process
+ /proc/pid/status contains a large number of process states and statistics, formatted human readable
+ Resource limit information for the/proc/pid/limits process
+ /PROC/PID/CWD-/home/zhaoli/xpoker/logic a symbolic link to the current working directory
+ /proc/pid/exe,/home/zhaoli/xpoker/logic/logic a symbolic link to the execution file for the process
+ /proc/pid/root/A symbolic link to the current root directory
+ All files opened by the/PROC/PID/FD process
+ /proc/pid/attr
+ /proc/pid/autogroup
+ /proc/pid/auxv
+ /proc/pid/cgroup
+ /proc/pid/clear_refs
+ /proc/pid/comm
+ /proc/pid/coredump_filter
+ /proc/pid/cpuset
+ /proc/pid/fdinfo
+ /proc/pid/io
+ /proc/pid/latency
+ /proc/pid/loginuid
+ /proc/pid/mem
+ /proc/pid/mountinfo
+ /proc/pid/mounts
+ /proc/pid/mountstats
+ /proc/pid/net
+ /proc/pid/ns
+ /proc/pid/numa_maps
+ /proc/pid/oom_adj
+ /proc/pid/oom_score
+ /proc/pid/oom_score_adj
+ /proc/pid/pagemap
+ /proc/pid/personality
+ /proc/pid/sched
+ /proc/pid/schedstat
+ /proc/pid/sessionid
+ /proc/pid/smaps
+ /proc/pid/stack
+ /proc/pid/syscall
+ /proc/pid/task
Two. Other relevant information
Files
- /proc/devices lists all the main device numbers and corresponding drivers that have been loaded into the kernel
- /proc/version system version Information uname command reads the secondary file
- /proc/cpuinfo CPU Information
- /proc/meminfo Memory Information
- /proc/modules the list of modules loaded by the current kernel, but use lsmod to see
- /proc/swaps swaps Information
- /proc/uptime system Startup time
- /proc/loadavg Load Information
- /proc/interrupts interrupted information and corresponding devices
- /proc/ioports memory location Allocation table for hardware devices
The
- /proc/kcore is physical memory. The size shown by alias using Ls-h is the size of physical memory, but it may be different from the actual size (why?). Kcore does not occupy the actual hard disk size Du-h = 0
- /proc/partitions All current partitions of the system
/pid/info See proc (5) man page
Li>modules current kernel loaded module list but use Lsmod to see
/proc/sys/system parameter configuration, System state, optimize system
- /proc/sys/kernel/kernel configuration and Parameters
- /proc/sys/net/Network configuration and status
- /proc/sys/fs/File system
/proc/self
is a link that points to itself (the current process) of the/proc/pid directory, to find its own information for a convenient process,
E.g you have bash terminal cat/proc/self This is the self is the bash process itself ' set Vim:foldmethod=marker
From for notes (Wiz)
NDK Learning 13:proc