免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 611 | 回复: 0
打印 上一主题 下一主题

The /proc filesystem [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-18 16:13 |只看该作者 |倒序浏览
The /proc filesystem
The /proc filesystem contains a
        illusionary filesystem.  It does not exist on a disk. Instead, the
        kernel creates it in memory.  It is used to provide information
        about the system (originally about processes, hence the name).  Some
        of the more important files and directories are explained below.
        The /proc filesystem is described in more
        detail in the proc manual page.
       
/proc/1
A directory with information about
                process number 1.  Each process has a directory below
                /proc with the name being its process
                identification number.       
/proc/cpuinfo
Information about the processor,
                such as its type, make, model, and performance.
               
/proc/devices
List of device drivers configured into the
                currently running kernel.  
/proc/dma
Shows which DMA channels are being used
                at the moment.       
/proc/filesystems
Filesystems configured into the kernel.
               
/proc/interrupts
Shows which interrupts are
                in use, and how many of each there have been.
               
/proc/ioports
Which I/O ports are in use at the moment.
               
/proc/kcore
An image of the physical memory of
                the system.  This is exactly the same size as your
                physical memory, but does not really take up that much
                memory; it is generated on the fly as programs access it.
                (Remember: unless you copy it elsewhere, nothing under
                /proc takes up any disk space
                at all.)  
/proc/kmsg
Messages output by the kernel.
                These are also routed to syslog.
               
/proc/ksyms
Symbol table for the kernel.
               
/proc/loadavg
The `load average' of the system; three
                meaningless indicators of how much work the system has
                to do at the moment.  
/proc/meminfo
Information about memory usage, both
                physical and swap.  
/proc/modules
Which kernel modules are loaded at
                the moment.  
/proc/net
Status information about network
                protocols.  
/proc/self
A symbolic link to the process
                directory of the program that is looking at
                /proc.  When two processes look at
                /proc, they get different links.
                This is mainly a convenience to make it easier
                for programs to get at their process directory.
               
/proc/stat
Various statistics about the system, such
                as the number of page faults since the system was booted.
               
/proc/uptime
The time the system has been up.
               
/proc/version
The kernel version.
               
Note that while the above files tend to be easily readable
        text files, they can sometimes be formatted in a way that is not
        easily digestible.  There are many commands that do little more than
        read the above files and format them for easier understanding. For
        example, the freeprogram reads
        /proc/meminfo converts the amounts given in
        bytes to kilobytes (and adds a little more information, as
        well).
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/13918/showart_129559.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP