📄 node27.html
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<!--Converted with LaTeX2HTML 96.1-h (September 30, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
<HTML>
<HEAD>
<TITLE>The /proc filesystem</TITLE>
<META NAME="description" CONTENT="The /proc filesystem">
<META NAME="keywords" CONTENT="sag">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<LINK REL=STYLESHEET HREF="sag.css" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/sag.css">
</HEAD>
<BODY LANG="EN" >
<A NAME="tex2html606" HREF="node28.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node28.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="next_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/next_motif.gif"></A> <A NAME="tex2html604" HREF="node20.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node20.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="up_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/up_motif.gif"></A> <A NAME="tex2html600" HREF="node26.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node26.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/previous_motif.gif"></A> <A NAME="tex2html608" HREF="node1.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/contents_motif.gif"></A> <A NAME="tex2html609" HREF="node108.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node108.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="index_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME="tex2html607" HREF="node28.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node28.html">Using Disks and Other </A>
<B>Up:</B> <A NAME="tex2html605" HREF="node20.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node20.html">Overview of the Directory </A>
<B> Previous:</B> <A NAME="tex2html601" HREF="node26.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node26.html">The /var filesystem</A>
<BR> <P>
<A NAME="943"> </A><H1><A NAME="SECTION00450000000000000000"><tt>/proc</tt>文件系统</A></H1>
<P>
<tt>/proc</tt><A NAME="945"> </A>文件系统是一个假的文件系统。
它不存在在磁盘某个磁盘上。而是由核心在内存中产生。用于提供关于系统的信息(originally about processes, hence the name)。
下面说明一些最重要的文件和目录。
<tt>/proc</tt><A NAME="947"> </A>文件系统在<em>proc</em><A NAME="949"> </A>man页中有更详细的说明。
<DL ><DT><STRONG><tt>/proc/1</tt><A NAME="951"> </A></STRONG>
<DD>
关于进程1的信息目录。每个进程在<tt>/proc</tt><A NAME="953"> </A>下有一个名为其进程号的目录。
<DT><STRONG><tt>/proc/cpuinfo</tt><A NAME="955"> </A></STRONG>
<DD>
处理器信息,如类型、制造商、型号和性能。
<DT><STRONG><tt>/proc/devices</tt><A NAME="957"> </A></STRONG>
<DD>
当前运行的核心配置的设备驱动的列表。
<DT><STRONG><tt>/proc/dma</tt><A NAME="959"> </A></STRONG>
<DD>
显示当前使用的DMA通道。
<DT><STRONG><tt>/proc/filesystems</tt><A NAME="961"> </A></STRONG>
<DD>
核心配置的文件系统。
<DT><STRONG><tt>/proc/interrupts</tt><A NAME="963"> </A></STRONG>
<DD>
显示使用的中断,and how many of each there have been.
<DT><STRONG><tt>/proc/ioports</tt><A NAME="965"> </A></STRONG>
<DD>
当前使用的I/O端口。
<DT><STRONG><tt>/proc/kcore</tt><A NAME="967"> </A></STRONG>
<DD>
系统物理内存映象。与物理内存大小完全一样,但不实际占用这么多内存;it is generated on the fly as programs access it.
(记住:除非你把它拷贝到什么地方,<tt>/proc</tt><A NAME="969"> </A>下没有任何东西占用任何磁盘空间。)
<DT><STRONG><tt>/proc/kmsg</tt><A NAME="971"> </A></STRONG>
<DD>
核心输出的消息。也被送到<tt>syslog</tt><A NAME="973"> </A>。
<DT><STRONG><tt>/proc/ksyms</tt><A NAME="975"> </A></STRONG>
<DD>
核心符号表。
<DT><STRONG><tt>/proc/loadavg</tt><A NAME="977"> </A></STRONG>
<DD>
系统"平均负载";3个没有意义的指示器指出系统当前的工作量。
<DT><STRONG><tt>/proc/meminfo</tt><A NAME="979"> </A></STRONG>
<DD>
存储器使用信息,包括物理内存和swap。
<DT><STRONG><tt>/proc/modules</tt><A NAME="981"> </A></STRONG>
<DD>
当前加载了哪些核心模块。
<DT><STRONG><tt>/proc/net</tt><A NAME="983"> </A></STRONG>
<DD>
网络协议状态信息。
<DT><STRONG><tt>/proc/self</tt><A NAME="985"> </A></STRONG>
<DD>
到查看<tt>/proc</tt><A NAME="987"> </A>的程序的进程目录的符号连接。
当2个进程查看<tt>/proc</tt><A NAME="989"> </A>时,是不同的连接。
这主要便于程序得到它自己的进程目录。
<DT><STRONG><tt>/proc/stat</tt><A NAME="991"> </A></STRONG>
<DD>
系统的不同状态,such as the number of page faults since the system was booted.
<DT><STRONG><tt>/proc/uptime</tt><A NAME="993"> </A></STRONG>
<DD>
系统启动的时间长度。
<DT><STRONG><tt>/proc/version</tt><A NAME="995"> </A></STRONG>
<DD>
核心版本。
<P>
</DL>
注意所有上述文件给出易读的文本文件,有时可能是不易读的格式。有许多命令做了些格式化以更容易读。
例如,<tt>free</tt><A NAME="997"> </A>程序读<tt>/proc/meminfo</tt><A NAME="999"> </A>
并将给出的字节数转换为千字节(并增加了一些信息)。
<P>
<HR><A NAME="tex2html606" HREF="node28.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node28.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="next_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/next_motif.gif"></A> <A NAME="tex2html604" HREF="node20.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node20.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="up_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/up_motif.gif"></A> <A NAME="tex2html600" HREF="node26.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node26.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/previous_motif.gif"></A> <A NAME="tex2html608" HREF="node1.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/contents_motif.gif"></A> <A NAME="tex2html609" HREF="node108.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node108.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="index_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME="tex2html607" HREF="node28.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node28.html">Using Disks and Other </A>
<B>Up:</B> <A NAME="tex2html605" HREF="node20.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node20.html">Overview of the Directory </A>
<B> Previous:</B> <A NAME="tex2html601" HREF="node26.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node26.html">The /var filesystem</A>
<P><ADDRESS>
<I>Lars Wirzenius <BR>
Sun Jun 29 13:31:22 EEST 1997</I>
</ADDRESS>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -