linux 中查找过去一段时间内被修改过的文件

 

001、

复制代码
[root@pc1 test]# ls
a.txt  b.txt  c.txt
[root@pc1 test]# ll -h             ## 测试文件
total 4.0K
-rw-r--r--. 1 root root  0 Oct 28 16:36 a.txt
-rw-r--r--. 1 root root 21 Oct 28 16:37 b.txt
-rw-r--r--. 1 root root  0 Oct 28 16:36 c.txt
[root@pc1 test]# find ./ -mmin -1           ## 过去一分钟内被修改过的文件
[root@pc1 test]# find ./ -mmin -3
[root@pc1 test]# find ./ -mmin -4           ## 过去4分钟内被修改过的文件
./b.txt
[root@pc1 test]# find ./ -mmin -10
./
./a.txt
./b.txt
./c.txt
[root@pc1 test]# find ./ -mtime -1          ## 过去一天内被修改过的文件
./
./a.txt
./b.txt
./c.txt
复制代码

 

posted @   小鲨鱼2018  阅读(95)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
历史上的今天:
2021-10-28 R语言中在数据框中批量替换指定项
2021-10-28 R语言中统计数据框所有项中的并集
2020-10-28 linux系统中 raid10磁盘阵列损坏修复
2020-10-28 linux系统中部署raid10磁盘阵列
点击右上角即可分享
微信分享提示