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