Chinaunix首页 | 论坛 | 博客
  • 博客访问: 35052
  • 博文数量: 8
  • 博客积分: 152
  • 博客等级: 入伍新兵
  • 技术积分: 80
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-23 15:02
文章分类
文章存档

2015年(1)

2011年(7)

分类: LINUX

2011-08-25 15:54:24

                                                  The Times that find Finds
The times that go with the find operators -mtime, -atime, and -ctime (17.4) aren't documented very well.
The times are in days:
A number with no sign, for example, 3 (as in -mtime 3 or -atime 3), means the 24-hour period that
ended exactly three days ago (in other words, between 96 and 72 hours ago).

A number with a minus sign (-) refers to the period since that time. For example, -3 (as in -mtime
-3) is any time between now and three days ago (in other words, between 0 and 72 hours ago).

Naturally, a number with a plus sign (+) refers to the 24-hour period before that time. For example,
+3 (as in -mtime +3) is any time more than three days ago (in other words, more than 96 hours
ago).
  
Got that? Then you should see that -atime -2 and -atime 1 are both true on files that have been accessed
between 48 and 24 hours ago. (-atime -2 is also true on files accessed 24 hours or less ago.)
阅读(1666) | 评论(0) | 转发(0) |
0

上一篇:目录读写执行权限的意义

下一篇:没有了

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