⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 简述linux 文件系统的目录结构 linuxsir_org.htm

📁 linuxSir 网站的精华文章
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0040)http://www.linuxsir.org/main/?q=node/189 -->
<HTML lang=zh-hans xml:lang="zh-hans" 
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>简述Linux 文件系统的目录结构 | LinuxSir.Org</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<STYLE type=text/css media=all>@import url( misc/drupal.css );
</STYLE>


<STYLE type=text/css media=all>@import url( modules/taxonomy_context/taxonomy_context.css );
</STYLE>
<LINK media=screen 
href="简述Linux 文件系统的目录结构  LinuxSir_Org.files/menuExpandable3.css" type=text/css 
rel=stylesheet>
<SCRIPT src="简述Linux 文件系统的目录结构  LinuxSir_Org.files/menuExpandable3.js" 
type=text/javascript></SCRIPT>
<LINK href="简述Linux 文件系统的目录结构  LinuxSir_Org.files/common.css" type=text/css 
rel=stylesheet>
<STYLE type=text/css media=all>@import url( themes/chameleon/marvin/style.css );
</STYLE>

<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV id=header><A title=Home href="http://www.linuxsir.org/main/"><IMG alt=Home 
src="简述Linux 文件系统的目录结构  LinuxSir_Org.files/logo.jpg"></A></DIV>
<DIV class=navlinks>
<DIV class=primary><A href="http://www.linuxsir.org/main/?q"><FONT 
color=white>首页</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=taxonomy/term/34"><FONT 
color=white>事件</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=taxonomy/term/1/25/"><FONT 
color=white>文档</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=taxonomy/term/35/48/"><FONT 
color=white>资源</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=search"><FONT color=white>搜索</FONT></A> | 
<A href="http://www.linuxsir.org/bbs"><FONT color=white>论坛</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=taxonomy/term/38"><FONT 
color=white>贡献者</FONT></A> | <A 
href="http://www.linuxsir.org/main/?q=node/3"><FONT color=white>关于</FONT></A> | 
<A href="http://www.linuxsir.org/main/?q=user"><FONT 
color=white>注册/登录</FONT></A></DIV></DIV>
<TABLE id=content>
  <TBODY>
  <TR>
    <TD id=sidebar-left>
      <DIV class="block block-block" id=block-block-1>
      <H2 class=title>子站索引</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://fedora.linuxsir.org/" target?_blank?>Fedora中文</A> 
        <LI><A href="http://debian.linuxsir.org/" target?_blank?>Debian中文</A> 
        <LI><A href="http://lfs.linuxsir.org/" target?_blank?>LFS 中文</A> 
        <LI><A href="http://slack.linuxsir.org/">Slackware</A> 
        <LI><A href="http://gentoo.linuxsir.org/">Gentoo中文</A> 
        <LI><A href="http://arch.linuxsir.org/">Arch 中文</A> </LI></UL></DIV></DIV>
      <DIV class="block block-block" id=block-block-3>
      <H2 class=title>重要资讯</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/36">本站公告</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/34">新闻事件</A> 
        <LI><A href="http://www.linuxsir.org/bbs" target=_blank>本站论坛</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/38">贡 献 者</A> 
        </LI></UL></DIV></DIV>
      <DIV class="block block-block" id=block-block-7>
      <H2 class=title>项目索引</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://www.fcitx.org/" target=_blank>小企鹅输入法</A> 
        <LI><A href="http://lumaqq.linuxsir.org/" target=_blank>LumaQQ</A> 
        <LI><A href="http://openq.linuxsir.org/" target=_blank>OpenQ</A> 
        <LI><A href="http://www.relaxbsd.org/" target=_blank>RelaxBSD</A> 
      </LI></UL></DIV></DIV>
      <DIV class="block block-user" id=block-user-1>
      <H2 class=title>站点导航</H2>
      <DIV class=content>
      <DIV class=menu>
      <UL>
        <LI class=leaf><A title=注册/登录 
        href="http://www.linuxsir.org/main/?q=user">注册/登录</A> 
        <LI class=collapsed><A 
        href="http://www.linuxsir.org/main/?q=aggregator">新闻聚合</A> 
      </LI></UL></DIV></DIV></DIV>
      <DIV class="block block-aggregator" id=block-aggregator-feed-2>
      <H2 class=title>LinuxSir.Org 论坛</H2>
      <DIV class=content>
      <DIV class=item-list>
      <UL>
        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=266992&amp;goto=newpost">MTD工具制作问题</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=266991&amp;goto=newpost">好久没来了,原来家里没条件上网:)</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=266990&amp;goto=newpost">想求一个终端软件</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=266989&amp;goto=newpost">求助!!关于AMSN和wxdfast</A> 

        <LI><A 
        href="http://www.linuxsir.org/bbs/showthread.php?t=266988&amp;goto=newpost">出现这样的gtk-waring怎么半?</A> 
        </LI></UL></DIV>
      <DIV class=more-link><A title=查看此feed的最新消息 
      href="http://www.linuxsir.org/main/?q=aggregator/sources/2">更多</A></DIV></DIV></DIV>
      <DIV class="block block-user" id=block-user-2>
      <H2 class=title>最新注册</H2>
      <DIV class=content>
      <DIV class=item-list>
      <UL>
        <LI>zionsaint
        <LI>haphap
        <LI>AndyWang
        <LI>mi8421
        <LI>wt2977</LI></UL></DIV></DIV></DIV>
      <DIV class="block block-user" id=block-user-3>
      <H2 class=title>当前在线</H2>
      <DIV class=content>0 users 和 61 游客 在线</DIV></DIV></TD>
    <TD id=main>
      <DIV class=breadcrumb><A href="http://www.linuxsir.org/main/?q=">首页</A> » 
      <A href="http://www.linuxsir.org/main/?q=taxonomy/term/1">Linux</A></DIV>
      <H2>简述Linux 文件系统的目录结构</H2><!-- begin content -->
      <DIV class=node>
      <DIV class=content>
      <P><B>作者:</B>北南南北<BR><B>来自:</B>LinuxSir.Org<BR><B>摘要:</B> 
      Linux文件系统是呈树形结构,了解Linux文件系统的目录结构,对于我们驾驭Linux还是有必要的。本文对Linux下比较重要的目录加以解说,以答初学者所说的“杂乱无章”目录结构,给一个简要的说明。 
      </P>
      <P><FONT size=4><B><BR>目录<BR></B></FONT></P>
      <UL><A href="http://www.linuxsir.org/main/?q=node/189#1">1、什么是文件系统; 
        </A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/189#2">2、文件系统的组织结构简说;</A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/189#3">3、文件系统的组织结构分析; 
        </A><BR><A href="http://www.linuxsir.org/main/?q=node/189#4">4、本文未尽事宜; 
        </A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/189#5">5、关于本文;</A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/189#6">6、后记; </A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/189#7">7、参考文档;</A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/189#8">8、相关文档;</A> </UL>
      <P><FONT 
      color=blue><B><BR>++++++++++++++++++++++++++++++++++++++++++++++<BR>正文<BR>++++++++++++++++++++++++++++++++++++++++++++++<BR></B></FONT></P>
      <P>Linux文件系统结的结构是树形结构,其入口从/开始,了解Linux文件系统的结构,对于我们需要掌握的基础知识点之一。</P>
      <P><FONT id=1 size=4><BR>1、什么是文件系统;<BR></FONT></P>
      <P><B>请参见:</B><A href="http://www.linuxsir.org/main/?q=node/115">《Linux 
      文件系统概述》</A></P>
      <P><FONT id=2 size=4><BR>2、文件系统的组织结构简说;<BR></FONT></P>
      <P>当您使用Linux的时候,如果您通过ls -la / 就会发现,在/下包涵很多的目录,比如etc、usr、var、bin ... ... 
      等目录,而在这些目录中,我们进去看看,发现也有很多的目录或文件。文件系统在Linux下看上去就象树形结构,所以我们可以把文件系统的结构形象的称为树形结构。</P>
      <P>查看文件系统的结构,我们可以通过tree命令来实现; </P>
      <P>
      <DIV class=codeblock><CODE>[root@localhost ~]# tree</CODE></DIV>
      <P></P>
      <P>不过tree 这个命令目前在Fedora Core 5.0 中已经消失,在Slackware 
      10.2的版本中仍有保留。不过其它版本的Linux应该有;由tree命令的输出结果来看,最顶端应该是/,我们称/为Linux的root,也就是Linux操作系统的文件系统。Linux的文件系统的入口就是/,所有的目录、文件、设备都在/之下,/就是Linux文件系统的组织者,也是最上级的领导者。</P>
      <P>下面我们把Linux文件系统的树形结构的主要目录列一下,主要 </P>
      <P><FONT id=3 size=4><BR>3、文件系统的组织结构分析;<BR></FONT></P>
      <P>文件系统的组织结构分析,我们能分析什么呢?也就是当我们列/目录时,所看到的/usr、/etc ... ... /var 
      等目录是做什么用的,这些目录是不是有些特定的用途。无论哪个哪个版本的Linux系统,都有这些目录,这些目录应该是标准的。当然各个Linux发行版本也会存在一些小小的差异,但总体来说,还是大体差不多。</P>
      <P>Linux发行版本之间的差别其实很少,差别主要表现在系统管理的特色工具以及软件包管理方式的不同,除此之外,没有什么大的差别; 
      比如Fedora软件包管理工具是rpm,而Slackware是pkgtool 或installpkg等;</P>
      <P>言归正传,我们接着说文件系统组织结构。</P>
      <P>/ Linux文件系统的入口,也是处于最高一级的目录; </P>
      <P>/bin 基础系统所需要的那些命令位于此目录,也是最小系统所需要的命令;比如 
      ls、cp、mkdir等命令;功能和/usr/bin类似,这个目录中的文件都是可执行的,普通用户都可以使用的命令。做为基础系统所需要的最基础的命令就是放在这里。</P>
      <P>/boot Linux的内核及引导系统程序所需要的文件,比如 vmlinuz initrd.img 
      文件都位于这个目录中。在一般情况下,GRUB或LILO系统引导管理器也位于这个目录;</P>
      <P>/dev 设备文件存储目录,比如声卡、磁盘... ...</P>
      <P>/etc 系统配置文件的所在地,一些服务器的配置文件也在这里;比如用户帐号及密码配置文件;</P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -