" 目录:RHCA+ -> 16 proc -> 1 介绍proc "

虚拟文件系统,以文件系统目录和文件的方式提供访问内核数据的接口,可查看并修改各种系统属性
内核、进程、外部设备状态和网络状态等信息,数据保存在内存中
虚拟文件系统
root@wuzuniao \~# mount | grep /proc #默认已自动挂载
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
root@wuzuniao \~# mount -t proc proc /proc #手动挂载方式
mount: proc 已经挂载或 /proc 忙
proc 已经挂载到 /proc 上
root@wuzuniao \~# ls -al /proc #查看所有文件,省略了大量PID目录
总用量 0
dr-xr-xr-x. 191 root root 0 8月 10 15:15 .
dr-xr-xr-x. 17 root root 224 3月 3 15:40 ..
dr-xr-xr-x. 9 root root 0 8月 10 15:15 1
dr-xr-xr-x. 2 root root 0 8月 10 21:09 acpi
dr-xr-xr-x. 5 root root 0 8月 10 21:09 asound
-r--r--r--. 1 root root 0 8月 10 21:09 buddyinfo
dr-xr-xr-x. 4 root root 0 8月 10 21:09 bus
-r--r--r--. 1 root root 0 8月 10 21:09 cgroups
-r--r--r--. 1 root root 0 8月 10 21:09 cmdline
-r--r--r--. 1 root root 0 8月 10 21:09 consoles
-r--r--r--. 1 root root 0 8月 10 21:09 cpuinfo
-r--r--r--. 1 root root 0 8月 10 21:09 crypto
-r--r--r--. 1 root root 0 8月 10 21:09 devices
-r--r--r--. 1 root root 0 8月 10 21:09 diskstats
-r--r--r--. 1 root root 0 8月 10 21:09 dma
dr-xr-xr-x. 2 root root 0 8月 10 21:09 driver
-r--r--r--. 1 root root 0 8月 10 21:09 execdomains
-r--r--r--. 1 root root 0 8月 10 21:09 fb
-r--r--r--. 1 root root 0 8月 10 21:09 filesystems
dr-xr-xr-x. 4 root root 0 8月 10 21:09 fs
-r--r--r--. 1 root root 0 8月 10 21:09 interrupts
-r--r--r--. 1 root root 0 8月 10 21:09 iomem
-r--r--r--. 1 root root 0 8月 10 21:09 ioports
dr-xr-xr-x. 56 root root 0 8月 10 21:09 irq
-r--r--r--. 1 root root 0 8月 10 21:09 kallsyms
-r--------. 1 root root 140737486266368 8月 10 21:09 kcore
-r--r--r--. 1 root root 0 8月 10 21:09 keys
-r--r--r--. 1 root root 0 8月 10 21:09 key-users
-r--------. 1 root root 0 8月 10 21:09 kmsg
-r--------. 1 root root 0 8月 10 21:09 kpagecount
-r--------. 1 root root 0 8月 10 21:09 kpageflags
-r--r--r--. 1 root root 0 8月 10 21:09 loadavg
-r--r--r--. 1 root root 0 8月 10 21:09 locks
-r--r--r--. 1 root root 0 8月 10 21:09 mdstat
-r--r--r--. 1 root root 0 8月 10 21:09 meminfo
-r--r--r--. 1 root root 0 8月 10 21:09 misc
-r--r--r--. 1 root root 0 8月 10 21:09 modules
lrwxrwxrwx. 1 root root 11 8月 10 21:09 mounts -> self/mounts
dr-xr-xr-x. 3 root root 0 8月 10 21:09 mpt
-rw-r--r--. 1 root root 0 8月 10 15:15 mtrr
lrwxrwxrwx. 1 root root 8 8月 10 21:09 net -> self/net
-r--------. 1 root root 0 8月 10 21:09 pagetypeinfo
-r--r--r--. 1 root root 0 8月 10 21:09 partitions
-r--r--r--. 1 root root 0 8月 10 21:09 sched_debug
-r--r--r--. 1 root root 0 8月 10 21:09 schedstat
dr-xr-xr-x. 4 root root 0 8月 10 21:09 scsi
lrwxrwxrwx. 1 root root 0 8月 10 15:15 self -> 6953
-r--------. 1 root root 0 8月 10 21:09 slabinfo
-r--r--r--. 1 root root 0 8月 10 21:09 softirqs
-r--r--r--. 1 root root 0 8月 10 21:09 stat
-r--r--r--. 1 root root 0 8月 10 15:15 swaps
dr-xr-xr-x. 1 root root 0 8月 10 15:15 sys
--w-------. 1 root root 0 8月 10 21:09 sysrq-trigger
dr-xr-xr-x. 2 root root 0 8月 10 21:09 sysvipc
-r--r--r--. 1 root root 0 8月 10 21:09 timer_list
-rw-r--r--. 1 root root 0 8月 10 21:09 timer_stats
dr-xr-xr-x. 4 root root 0 8月 10 21:09 tty
-r--r--r--. 1 root root 0 8月 10 21:09 uptime
-r--r--r--. 1 root root 0 8月 10 21:09 version
-r--------. 1 root root 0 8月 10 21:09 vmallocinfo
-r--r--r--. 1 root root 0 8月 10 21:09 vmstat
-r--r--r--. 1 root root 0 8月 10 21:09 zoneinfo
root@wuzuniao \~#