Chinaunix首页 | 论坛 | 博客
  • 博客访问: 823709
  • 博文数量: 222
  • 博客积分: 4341
  • 博客等级: 上校
  • 技术积分: 2155
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-16 13:50
个人简介

...

文章分类

全部博文(222)

文章存档

2019年(1)

2016年(9)

2015年(7)

2014年(14)

2013年(11)

2012年(10)

2011年(6)

2010年(25)

2009年(37)

2008年(21)

2007年(81)

我的朋友

分类: BSD

2009-09-04 10:17:05

1. 查找空目录
   $ find /path -depth -type d -empty

2. 查找空文件
   $ find /path -depth -type f -empty

3. 指定文件名查找
   $ find /path -name name_of_file

4. 指定扩展名查找
   $ find /path -name "*.given_extension"

5. 指定权限查找
   $ find /path -perm -permision_bits

6. 指定修改时间查找
   $ find /path -mtime n
  • 0 for the last 24 hours
  • 1 for the last 48 hours
  • 2 for the last 72 hours
7. 指定访问时间查找
   $ find -atime n

8. 指定宿主查找
   $ find /path -user root

9. 查找并删除
   $ find /path -name mytestfile | xargs rm


相关链接:
阅读(841) | 评论(0) | 转发(0) |
0

上一篇:单独编译内核模块

下一篇:git push错误

给主人留下些什么吧!~~