【RHCA+】介绍proc

" 目录: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 \~#

相关推荐
学以智用1 小时前
Linux 终端(Terminal)
linux
布莱克6053 小时前
Swift 下标(Subscript)详解:从语法到实战
服务器·开发语言·ios·ssh·swift·下标
weiwei228443 小时前
Nuclei开发环境搭建及入门
linux·嵌入式·risc-v
星恒随风4 小时前
从0实现C++ AI大模型接入SDK(三):环境搭建与ChatSDK快速上手——实现我们的第一个AI聊天程序
linux·开发语言·c++·人工智能·笔记
Tronlong创龙4 小时前
创龙科技 TL3572(RK3572)评估板 Linux 系统固化手册
linux·嵌入式开发·硬件开发·工业控制
Decay__4 小时前
PostgreSQL 用户权限与安全 —— 角色体系、GRANT 授权、pg_hba.conf 认证、行级安全与审计
运维·数据库·sql·postgresql
fengkai45454 小时前
Python运维实战
运维·开发语言·python·ssh·sftp·paramiko
那明眸似水6 小时前
LVS高可用负载均衡集群部署实训
运维·负载均衡·lvs
MSTcheng.6 小时前
【LinuxIO篇】Linux学习第二十三弹——fopen和open有什么区别?从 FILE* 到 fd,讲透 Linux 文件 IO
linux·运维·学习·io·系统调用·fd