文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>UNIX下查找文件(转)

UNIX下查找文件(转)

时间:2010-10-13  来源:Jessica Lu

查找当前目录下的指定的core文件 
Unix代码 
find.-name"core"find . -name "core"
查找根目录下的指定的core文件 
Unix代码 
find/-name"core"find / -name "core"
查找根目录下的指定的core文件夹 
Unix代码 
find/-name"core"-typeffind / -name "core" -type f
b(块文件) c (字符文件) 9Q9Linux联盟 
d(目录) l (符号链接) p (命名管道) f (普通文件) 
查找根目录下的指定的大小core文件 
Unix代码 
find/-name"core"-size+1024cfind / -name "core" - size +1024c
查找文件中是否含有指定的字符 "10.71.110.89" 
Unix代码 
find/-name"web.xml"-typef|xargsgrep"10.71.110.89"find / -name "web.xml" - type f |xargs grep "10.71.110.89"
删除所有的tar.gz结尾的文件 
Unix代码 
find/-name"*.tar.gz"-typef-execrm-rf{}\;
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载