mtime's-和+switch有什么区别,因为两者都没有带回我需要的结果?
mtime
-
+
我想删除所有超过 5 天的文件:
find /mnt/sdb1/tmp/ -type f -mtime +5 -exec ls {} \; find /mnt/sdb1/tmp/ -type f -mtime -5 -exec ls {} \;
我已将输出更改为ls以比较结果。
ls
linux bash find
bash ×1
find ×1
linux ×1