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

📄 linux文件查找命令find,xargs详述 linuxsir_org.htm

📁 linuxSir 网站的精华文章
💻 HTM
📖 第 1 页 / 共 4 页
字号:
      <FORM action=?q=comment method=post>
      <DIV><INPUT type=hidden value=137 name=edit[nid]> <A id=comment-226></A>
      <DIV class=comment>
      <H3 class=title><A class=active 
      href="http://www.linuxsir.org/main/?q=node/137#comment-226">如-007就相当于777,-006相当于666 
      有误</A></H3>
      <DIV class=content>
      <P>-007应该是至少007的意思:如:407,447 etc</P></DIV>
      <DIV class=links>By Anonymous at 周日, 2006/01/22 - 19:58 | <A 
      href="http://www.linuxsir.org/main/?q=comment/reply/137/226">回复</A></DIV></DIV><A 
      id=comment-170></A>
      <DIV class=comment>
      <H3 class=title><A class=active 
      href="http://www.linuxsir.org/main/?q=node/137#comment-170">-exec后边的{}有问题</A></H3>
      <DIV class=content>
      <P>{}之间没有空格吧.页面上的命令有空格,复制粘贴后是错误的.</P></DIV>
      <DIV class=links>By Anonymous at 周一, 2005/12/26 - 20:23 | <A 
      href="http://www.linuxsir.org/main/?q=comment/reply/137/170">回复</A></DIV></DIV>
      <DIV style="MARGIN-LEFT: 25px"><A id=comment-582></A>
      <DIV class=comment>
      <H3 class=title><A class=active 
      href="http://www.linuxsir.org/main/?q=node/137#comment-582">这里的确有问题</A></H3>
      <DIV class=content>
      <P>debian:~# find /usr/bin -type f -size -50c -exec 'ls -l' {} ;<BR>find: 
      missing argument to `-exec'</P>
      <P>debian:~# find /usr/bin -type f -size -50c -exec ls -l '{}' 
      ';'<BR>-rwxr-xr-x 1 root root 30 2003-11-08 21:31 
      /usr/bin/rgrep<BR>-rwxr-xr-x 1 root root 29 2004-11-22 14:09 
      /usr/bin/bison.yacc<BR>-rwxr-xr-x 1 root root 48 2005-09-04 15:20 
      /usr/bin/pydoc2.3<BR>-rwxr-xr-x 1 root root 32 2005-05-16 19:02 
      /usr/bin/gnome-sudo</P>
      <P>debian:~# find /usr/bin -type f -size -50c -exec ls -l '{}' 
      \;<BR>-rwxr-xr-x 1 root root 30 2003-11-08 21:31 
      /usr/bin/rgrep<BR>-rwxr-xr-x 1 root root 29 2004-11-22 14:09 
      /usr/bin/bison.yacc<BR>-rwxr-xr-x 1 root root 48 2005-09-04 15:20 
      /usr/bin/pydoc2.3<BR>-rwxr-xr-x 1 root root 32 2005-05-16 19:02 
      /usr/bin/gnome-sudo</P>
      <P>debian:~# find /usr/bin -type f -size -50c -exec ls -l \{\} 
      \;<BR>-rwxr-xr-x 1 root root 30 2003-11-08 21:31 
      /usr/bin/rgrep<BR>-rwxr-xr-x 1 root root 29 2004-11-22 14:09 
      /usr/bin/bison.yacc<BR>-rwxr-xr-x 1 root root 48 2005-09-04 15:20 
      /usr/bin/pydoc2.3<BR>-rwxr-xr-x 1 root root 32 2005-05-16 19:02 
      /usr/bin/gnome-sudo</P>
      <P>在用-exec的时候,command不能用'',而{}和;必须用'',或者\转义。</P></DIV>
      <DIV class=links>By Anonymous at 周日, 2006/07/23 - 11:31 | <A 
      href="http://www.linuxsir.org/main/?q=comment/reply/137/582">回复</A></DIV></DIV></DIV><A 
      id=comment-155></A>
      <DIV class=comment>
      <H3 class=title><A class=active 
      href="http://www.linuxsir.org/main/?q=node/137#comment-155">不错的文章</A></H3>
      <DIV class=content>
      <P>这样的实用实干的文章越多越好!</P></DIV>
      <DIV class=links>By Anonymous at 周五, 2005/12/23 - 01:04 | <A 
      href="http://www.linuxsir.org/main/?q=comment/reply/137/155">回复</A></DIV></DIV>
      <DIV style="MARGIN-LEFT: 25px"><A id=comment-480></A>
      <DIV class=comment>
      <H3 class=title><A class=active 
      href="http://www.linuxsir.org/main/?q=node/137#comment-480">非常奇怪的问题!!!!</A></H3>
      <DIV class=content>
      <P>在RHEL4下有文件:/lib/modules/2.6.9ELsmp/source/include/linux/version.h<BR>但是为何用命令find 
      / -name version.h<BR>或者到目录:/lib/modules/2.6.9ELsmp/下<BR>find . -name 
      version.h<BR>都无法找到上述文件。<BR>但是在:/lib/modules/2.6.9ELsmp/source下<BR>find . 
      -name version.h<BR>却可以找到这个文件。<BR>不知是什么原因????</P></DIV>
      <DIV class=links>By Anonymous at 周一, 2006/06/05 - 12:04 | <A 
      href="http://www.linuxsir.org/main/?q=comment/reply/137/480">回复</A></DIV></DIV></DIV><A 
      id=comment-146></A>
      <DIV class=comment>
      <H3 class=title><A class=active 
      href="http://www.linuxsir.org/main/?q=node/137#comment-146">排版有误?</A></H3>
      <DIV class=content>
      <P>这么多&amp;line; 应该是|吧</P></DIV>
      <DIV class=links>By Anonymous at 周二, 2005/12/20 - 18:53 | <A 
      href="http://www.linuxsir.org/main/?q=comment/reply/137/146">回复</A></DIV></DIV>
      <DIV style="MARGIN-LEFT: 25px"><A id=comment-147></A>
      <DIV class=comment>
      <H3 class=title><A class=active 
      href="http://www.linuxsir.org/main/?q=node/137#comment-147">谢谢,已经修复</A></H3>
      <DIV class=content>
      <P>谢谢,已经修复;</P></DIV>
      <DIV class=links>By 北南南北 at 周二, 2005/12/20 - 19:10 | <A 
      href="http://www.linuxsir.org/main/?q=comment/reply/137/147">回复</A></DIV></DIV></DIV>
      <DIV style="MARGIN-LEFT: 50px"><A id=comment-149></A>
      <DIV class=comment>
      <H3 class=title><A class=active 
      href="http://www.linuxsir.org/main/?q=node/137#comment-149">改过了么? 
      怎么还有line</A></H3>
      <DIV class=content>
      <P>7、为了查找当前文件系统中的所有目录并排序;</P>
      <P>$ find . -type d &amp;line;sort</P></DIV>
      <DIV class=links>By Anonymous at 周三, 2005/12/21 - 09:08 | <A 
      href="http://www.linuxsir.org/main/?q=comment/reply/137/149">回复</A></DIV></DIV></DIV>
      <DIV style="MARGIN-LEFT: 75px"><A id=comment-151></A>
      <DIV class=comment>
      <H3 class=title><A class=active 
      href="http://www.linuxsir.org/main/?q=node/137#comment-151">非常感谢,全部修正;</A></H3>
      <DIV class=content>
      <P>非常感谢,全部修正;</P></DIV>
      <DIV class=links>By 北南南北 at 周三, 2005/12/21 - 10:54 | <A 
      href="http://www.linuxsir.org/main/?q=comment/reply/137/151">回复</A></DIV></DIV></DIV></DIV></FORM><!-- end content -->
      <DIV id=footer>
      <CENTER><A href="http://www.linuxsir.org/"><IMG 
      src="Linux文件查找命令find,xargs详述  LinuxSir_Org.files/logo.jpg"></A> <BR><A 
      href="http://www.miibeian.gov.cn/"><FONT color=blue 
      size=3><B>闽ICP备06025536号</B></FONT></A><BR>
      <SCRIPT language=JavaScript 
      src="Linux文件查找命令find,xargs详述  LinuxSir_Org.files/cyberpolice.htm"></SCRIPT>
      <BR><A href="http://www.linuxsir.org/main/?q=node/78"><FONT color=blue 
      size=3><B>© 2002-2006 LinuxSir.Org</B></FONT></A><BR></CENTER></DIV></TD>
    <TD id=sidebar-right>
      <DIV class="block block-block" id=block-block-2>
      <H2 class=title>基础知识</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/23">安装配置</A> 
        <LI><A 
        href="http://www.linuxsir.org/main/?q=taxonomy/term/1/25/">基础入门</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/22/">硬件解决</A> 

        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/21">软件管理</A> 
        <LI><A 
        href="http://www.linuxsir.org/main/?q=taxonomy/term/35/48/">重要资源</A> 
        </LI></UL></DIV></DIV>
      <DIV class="block block-block" id=block-block-4>
      <H2 class=title>软件应用</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/30">网络工具</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/32">图形图像</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/31">音乐视频</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/49">字体中文</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/33">软件其它</A> 
        </LI></UL></DIV></DIV>
      <DIV class="block block-block" id=block-block-5>
      <H2 class=title>网络服务器</H2>
      <DIV class=content>
      <UL>
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/27">文件服务器<A> 
        <LI><A 
        href="http://www.linuxsir.org/main/?q=taxonomy/term/28">Web服务器</A> 
        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/29">邮件服务器</A> 

        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/37">数据库应用</A> 

        <LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/50">服务器其它</A> 
        </LI></UL></DIV></DIV>
      <DIV class="block block-comment" id=block-comment-0>
      <H2 class=title>最新评论</H2>
      <DIV class=content>
      <DIV class=item-list>
      <UL>
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/226#comment-671">指出一个小错误</A><BR>3 
        hours 4 min 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/230#comment-670">受用了</A><BR>11 
        hours 9 min 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/228#comment-669">lgy</A><BR>15 
        hours 18 min 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/228#comment-668">我们的希望啊。。</A><BR>20 
        hours 48 min 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/228#comment-667">恭喜Beyond_2000....!</A><BR>1 
        day 6 hours 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/228#comment-666">感谢大家的祝福!--Beyond_2000</A><BR>1 
        day 6 hours 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/228#comment-665">恭喜恭喜!</A><BR>1 
        day 11 hours 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/228#comment-664">恭喜啊!</A><BR>1 
        day 12 hours 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/49#comment-663">一、nForce</A><BR>1 
        day 15 hours 前
        <LI><A 
        href="http://www.linuxsir.org/main/?q=node/49#comment-662">反复看了和反复做了好几遍了.这个方法似乎不行</A><BR>1 
        day 15 hours 
前</LI></UL></DIV></DIV></DIV></TD></TR></TBODY></TABLE></BODY></HTML>

⌨️ 快捷键说明

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