小编Gri*_*ckz的帖子

用 mtime - 和 + 找出不同之处

mtime's-+switch有什么区别,因为两者都没有带回我需要的结果?

我想删除所有超过 5 天的文件:

 find /mnt/sdb1/tmp/ -type f -mtime +5 -exec ls {} \;
 find /mnt/sdb1/tmp/ -type f -mtime -5 -exec ls {} \;
Run Code Online (Sandbox Code Playgroud)

我已将输出更改为ls以比较结果。

linux bash find

8
推荐指数
1
解决办法
4万
查看次数

标签 统计

bash ×1

find ×1

linux ×1