linux 文件和目录的属性 linuxsir_org.htm

来自「linuxSir 网站的精华文章」· HTM 代码 · 共 843 行 · 第 1/5 页

HTM
843
字号
<!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/196 -->
<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>haphap
        <LI>AndyWang
        <LI>mi8421
        <LI>wt2977
        <LI>李恒贵</LI></UL></DIV></DIV></DIV>
      <DIV class="block block-user" id=block-user-3>
      <H2 class=title>当前在线</H2>
      <DIV class=content>0 users 和 47 游客 在线</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>本文讲述的是文件或目录的属性,比如节点inode、文件类型、文件权限及归属;还对setuid、setgid及粘贴位进行了一般性的讲解。对ln 
      、chmod、umask、chown、chgrp 、touch 的用法也进行了比较详细的说明和举例; </P>
      <P><FONT size=4><B>目录</B></FONT></P>
      <P><A href="http://www.linuxsir.org/main/?q=node/196#1">1、 Linux 
      文件的属性概说;</A><BR><A href="http://www.linuxsir.org/main/?q=node/196#2">2、 
      关于inode;</A></P>
      <UL><A href="http://www.linuxsir.org/main/?q=node/196#2.10">2.10 inode 
        相同的文件是硬链接文件;</A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/196#2.11">2.11 
        创建硬链接,硬链接和源文件关系;</A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/196#2.12">2.12 
        软链接的创建,及软接与源文件的关系;</A> </UL>
      <P><A href="http://www.linuxsir.org/main/?q=node/196#3">3、文件类型;</A><BR><A 
      href="http://www.linuxsir.org/main/?q=node/196#4">4、文件的权限;</A></P>
      <UL><A href="http://www.linuxsir.org/main/?q=node/196#4.1">4.1 
        关于权限位;</A><BR><A href="http://www.linuxsir.org/main/?q=node/196#4.2">4.2 
        改变权限的命令 chmod ;</A>
        <P></P>
        <UL><A href="http://www.linuxsir.org/main/?q=node/196#4.21">4.21 通过 
          chmod 八进制语法来改变文件或目录的权限; </A><BR><A 
          href="http://www.linuxsir.org/main/?q=node/196#4.22">4.22 通过 chmod 
          助记语法来改变文件或目录的权限;</A> </UL>
        <P><A href="http://www.linuxsir.org/main/?q=node/196#4.3">4.3 默认权限分配的命令 
        umask ;</A> </P></UL>
      <P><A href="http://www.linuxsir.org/main/?q=node/196#5">5、setuid和setgid 
      位;</A></P>
      <UL><A href="http://www.linuxsir.org/main/?q=node/196#5.1">5.1 
        setuid和setgid的解说 ; </A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/196#5.2">5.2 
        setuid和setgid的实例应用;</A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/196#5.3">5.3 
        setuid和setgid的设置方法;</A> </UL>
      <P><A 
      href="http://www.linuxsir.org/main/?q=node/196#6">6、粘贴位及设置方法;</A><BR><A 
      href="http://www.linuxsir.org/main/?q=node/196#7">7、文件或目录的归属关系;</A></P>
      <UL><A href="http://www.linuxsir.org/main/?q=node/196#7.1">7.1 
        改变文件的当属关系的工具 chown ;</A><BR><A 
        href="http://www.linuxsir.org/main/?q=node/196#7.2">7.2 改变文件的属组工具 chgrp 
        ;</A><BR><A href="http://www.linuxsir.org/main/?q=node/196#7.3">7.3 
        文件属主和属组的特殊情况 ;</A> </UL>
      <P><A 
      href="http://www.linuxsir.org/main/?q=node/196#8">8、影响文件的读写执行的因素;</A><BR><A 
      href="http://www.linuxsir.org/main/?q=node/196#9">9、文件被修改或被访问的时间;</A><BR><A 
      href="http://www.linuxsir.org/main/?q=node/196#10">10、文件属性和文件系统属性的关系;</A><BR><A 
      href="http://www.linuxsir.org/main/?q=node/196#11">11、关于本文;</A><BR><A 
      href="http://www.linuxsir.org/main/?q=node/196#12">12、后记;</A><BR><A 

⌨️ 快捷键说明

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