用`-delete`命令`find`给出"目录不为空"使用`mtime`时出错,但不能用`atime`

时间:2018-06-13 10:55:33

标签: gnu-findutils

find /opt/work/bamboo/home/xml-data/build-dir -atime +365 -delete

没有输出,参考:

[root@server ~]# time find /opt/work/bamboo/home/xml-data/build-dir -not -path *repositories-cache* -atime +365 -delete

real    0m57.700s
user    0m7.182s
sys     0m35.245s
[root@server ~]#

VS

find /opt/work/bamboo/home/xml-data/build-dir -mtime +365 -delete

在cli上提供大量输出......为什么会这样?

查找版本:

[root@server ~]# sudo yum info findutils
Loaded plugins: dellsysid, product-id, rhnplugin, search-disabled-repos, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Installed Packages
Name        : findutils
Arch        : x86_64
Epoch       : 1
Version     : 4.4.2
Release     : 9.el6
Size        : 1.4 M
Repo        : installed
From repo   : rhel-x86_64-server-6

0 个答案:

没有答案