Linux command
proc 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
View process information
cat /proc/[pid]/status
View CPU info
cat /proc/cpuinfo
View memory info
cat /proc/meminfo
View kernel parameters
cat /proc/sys/kernel/hostname
说明
/proc is a virtual filesystem providing process and kernel information. It doesn't exist on disk - contents are generated dynamically by the kernel.
FAQ
What is the proc command used for?
/proc is a virtual filesystem providing process and kernel information. It doesn't exist on disk - contents are generated dynamically by the kernel.
How do I run a basic proc example?
Run `cat /proc/[pid]/status` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more proc examples?
This page includes 4 examples for proc, plus related commands for nearby Linux tasks.