<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[BIWEB开源PHP WMS系统创始人ArthurXF肖飞的blog]]></title> 
<link>http://www.bizeway.net/index.php</link> 
<description><![CDATA[网务通 - 网务公司发展之路]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[BIWEB开源PHP WMS系统创始人ArthurXF肖飞的blog]]></copyright>
<item>
<link>http://www.bizeway.net/read.php?</link>
<title><![CDATA[跟着ArthurXF学FreeBSD12——find命令用法]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[FreeBSD]]></category>
<pubDate>Mon, 22 Jan 2007 10:21:16 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?</guid> 
<description>
<![CDATA[ 
	　　在FreeBSD下经常要查找文件所在，所以必须熟练掌握find命令的用法。<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>　　find 路径 参数 “表达式或者文件名”<br/>　　find / -name "php.ini"<br/>　　从根目录开始查找php.ini文件<br/><br/> &nbsp; &nbsp; &nbsp;find / &#92;! -name "*.c" -print<br/> &nbsp; &nbsp; &nbsp;列出所有不是以.c结尾的文件 &nbsp; &nbsp; &nbsp; Print out a list of all the files whose names do not end in .c.<br/><br/> &nbsp; &nbsp; find / -newer ttt -user wnj -print<br/> &nbsp; &nbsp; 列出所有比文件ttt新并且owner是wnj的文件<br/><br/> &nbsp; &nbsp; find / &#92;! &#92;( -newer ttt -user wnj &#92;) -print<br/> &nbsp; &nbsp; 列出所有比文件ttt旧并且owner不是是wnj的文件<br/><br/> &nbsp; &nbsp; find / &#92;( -newer ttt -or -user wnj &#92;) -print<br/> &nbsp;列出所有比文件ttt新或者owner是wnj的文件 <br/><br/> &nbsp; &nbsp; find / -newerct '1 minute ago' -print<br/> &nbsp; &nbsp; 列出所有一分钟之前改变的文件<br/><br/> &nbsp; &nbsp; find / -type f -exec rm {} &#92;;<br/> &nbsp; 删除所有文件，除非你疯了<br/><br/> &nbsp; &nbsp; find -L /usr/bin/ -type l -delete<br/> &nbsp; &nbsp; 删除/usr/bin目录下所有连接错误的连接符号<br/><br/> &nbsp; find / -name "[a-z].*"<br/> &nbsp; <br/> &nbsp;还有几个参数会经常用到<br/> &nbsp;-amin n &nbsp;表示最后n分钟访问的文件<br/> &nbsp;-atime n 表示最后n小时访问的文件<br/> &nbsp;-cmin n &nbsp;表示最后n分钟改变状态的文件<br/> &nbsp;-ctime n 表示最后n小时改变状态的文件 &nbsp;<br/> &nbsp;-mmin n &nbsp;表示最后n分钟里修改过的文件<br/> &nbsp;-mtime n 表示最后24*n小时里修改过的文件 &nbsp; &nbsp;<br/> &nbsp;-empty &nbsp; 表示空白的文件，或空白的文件目录，或目录中没有子目录的文件夹<br/> &nbsp;-nouser &nbsp;属于作废用户的文件 &nbsp;<br/> &nbsp;-size +nc 长度大于n字节的文件<br/> &nbsp;几个参数之间可以用-and，-or连接，某个参数取反可用!，可以用括号分隔条件<br/> &nbsp;-exec command; 并执行命令<br/><br/>注意：在BSD下所有的字符串要使用引号</div></div><br/><br/><br/>现在ArthurXF本人正在搞PHP等技术培训，如果想学习的人可以跟我联系。另外培训的招生简章在这个网址，想了解的可以去看看。加我QQ：29011218交流也可。<br/><a href="http://www.bizeway.net/read.php/285.htm" target="_blank">PHP培训招生简章</a><br/>Tags - <a href="tag.php?tag=freebsd" rel="tag">freebsd</a> , <a href="tag.php?tag=find" rel="tag">find</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?&amp;guid=0#topreply</link>
<title><![CDATA[[评论] 跟着ArthurXF学FreeBSD12——find命令用法]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?&amp;guid=0#topreply</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>