📄 node22.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 root filesystem</TITLE>
<META NAME="description" CONTENT="The root 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="tex2html548" HREF="node23.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node23.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="tex2html546" 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="tex2html540" HREF="node21.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node21.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="tex2html550" 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="tex2html551" 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="tex2html549" HREF="node23.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node23.html">The /etc directory</A>
<B>Up:</B> <A NAME="tex2html547" HREF="node20.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node20.html">Overview of the Directory </A>
<B> Previous:</B> <A NAME="tex2html541" HREF="node21.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node21.html">Background</A>
<BR> <P>
<H1><A NAME="SECTION00420000000000000000">根文件系统</A></H1>
<P>
根文件系统一般应该比较小,因为包括严格的文件和一个小的不经常改变的文件系统不容易损坏。损坏的根文件系统一般意味着除非用特定的方法(例如从软盘)系统无法引导,
所以不应该冒这个险。
<P>
根目录一般不含任何文件,除了可能的标准的系统引导映象,通常叫<tt>/vmlinuz</tt><A NAME="686"> </A>。
所有其他文件在根文件系统的子目录中。
<DL ><DT><STRONG><tt>/bin</tt><A NAME="688"> </A></STRONG>
<DD>
引导启动所需的命令或普通用户可能用的命令(可能在引导启动后)。
<DT><STRONG><tt>/sbin</tt><A NAME="690"> </A></STRONG>
<DD>
类似<tt>/bin</tt><A NAME="692"> </A>,但不给普通用户使用,虽然如果必要且允许时可以使用。
<DT><STRONG><tt>/etc</tt><A NAME="694"> </A></STRONG>
<DD>
特定机器的配置文件。
<DT><STRONG><tt>/root</tt><A NAME="696"> </A></STRONG>
<DD>
<tt>root</tt>用户的家目录。
<DT><STRONG><tt>/lib</tt><A NAME="698"> </A></STRONG>
<DD>
根文件系统上的程序所需的共享库。
<DT><STRONG><tt>/lib/modules</tt><A NAME="700"> </A></STRONG>
<DD>
核心可加载模块,特别是那些恢复损坏系统时引导所需的(例如网络和文件系统驱动)。
<DT><STRONG><tt>/dev</tt><A NAME="702"> </A></STRONG>
<DD>
设备文件。
<DT><STRONG><tt>/tmp</tt><A NAME="704"> </A></STRONG>
<DD>
临时文件。引导启动后运行的程序应该使用<tt>/var/tmp</tt><A NAME="706"> </A>,而不是<tt>/tmp</tt><A NAME="708"> </A>,
因为前者可能在一个拥有更多空间的磁盘上。
<DT><STRONG><tt>/boot</tt><A NAME="710"> </A></STRONG>
<DD>
引导加载器(bootstrap loader)使用的文件,如LILO。
核心映象也经常在这里,而不是在根目录。
如果有许多核心映象,这个目录可能变得很大,这时可能使用单独的文件系统更好。
另一个理由是要确保核心映象必须在IDE硬盘的前1024柱面内。
<DT><STRONG><tt>/mnt</tt><A NAME="712"> </A></STRONG>
<DD>
系统管理员临时mount的安装点。
程序并不自动支持安装到<tt>/mnt</tt><A NAME="714"> </A>。
<tt>/mnt</tt><A NAME="716"> </A>可以分为子目录(例如<tt>/mnt/dosa</tt><A NAME="718"> </A>
可能是使用MSDOS文件系统的软驱,而<tt>/mnt/exta</tt><A NAME="720"> </A>可能是使用ext2文件系统的软驱)。
<DT><STRONG><tt>/proc</tt><A NAME="722"> </A>, <tt>/usr</tt><A NAME="724"> </A>, <tt>/var</tt><A NAME="726"> </A>, <tt>/home</tt><A NAME="728"> </A></STRONG>
<DD>
其他文件系统的安装点。
<P>
</DL><BR> <HR>
<UL><A NAME="CHILD_LINKS"> </A>
<LI> <A NAME="tex2html552" HREF="node23.html#SECTION00421000000000000000" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node23.html#SECTION00421000000000000000"><tt>/etc</tt>目录</A>
<LI> <A NAME="tex2html553" HREF="node24.html#SECTION00422000000000000000" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node24.html#SECTION00422000000000000000"><tt>/dev</tt>目录</A>
</UL>
<HR><A NAME="tex2html548" HREF="node23.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node23.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="tex2html546" 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="tex2html540" HREF="node21.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node21.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="tex2html550" 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="tex2html551" 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="tex2html549" HREF="node23.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node23.html">The /etc directory</A>
<B>Up:</B> <A NAME="tex2html547" HREF="node20.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node20.html">Overview of the Directory </A>
<B> Previous:</B> <A NAME="tex2html541" HREF="node21.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node21.html">Background</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 + -