linux - 根据修改时间在 Linux 中查找文件

标签 linux bash

假设文件是​​在同一天修改/创建的,有没有办法在 Linux 中获取修改时间大于早上 5 点的文件。

最佳答案

可以找到最后一天修改过的文件 find/-type f -mtime -1

##  (year 2014 April day 05 time 05:00:00)
touch -t 201404040500.00 ~/myfile

## Find all files newer then myfile 
find / -newer ~/myfile

希望对你有帮助

关于linux - 根据修改时间在 Linux 中查找文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22855119/

相关文章:

linux - 在所有子目录中运行 Hunspell

linux - x86-64 架构上的 gnu 汇编 RET 指令失败

bash 参数用换行符替换

linux - 将 bash 数据保存到 Redis

bash - 如何逐行连接 2 个多行字符串,就像 'paste' 对两个文件所做的那样

linux - 向 RHEL 5 登录屏幕添加安全消息

c - 我如何知道在 Linux 上编写的 C 程序是否可以在其他地方运行

linux - 当 psplash 从初始化脚本 (PID=1) 启动时,psplash-write 不起作用

bash - 可以在 bash if 语句中使用调用 "test"的函数吗?

bash - 在插入模式下保留 vim 拆分窗口