linux - 查找 1 小时前但不到 3 天修改的文件

标签 linux bash

在 linux 中,使用 bash,查找一个多小时前但不到 3 天前修改的文件的最简单方法是什么?

当然,必须有一种简单的方法来做到这一点。我一直在搜索,但找不到简单的解决方案。

最佳答案

查找有 -mtime 和 -mmin:

find . -mtime +3 -mmin -60

来自查找手册:

Numeric arguments can be specified as:

+n for greater than n

-n for less than n

n for exactly n

关于linux - 查找 1 小时前但不到 3 天修改的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32922557/

相关文章:

linux - gcc/g++ 的简易 makefile

c++ - 在 Ubuntu 中使用 C/C++ 进行线路输入插孔感知

windows - 是否有适用于 Windows 的具有良好界面的 git bash?

linux - Jekyll 安装,参数数量错误

linux - 我们可以在执行读取指令后检查缓存中的值吗?

linux - VNC4Server/vncserver – 在启动 vnc 服务器后始终使用桌面号 1

c - 搜索字符串中的公共(public)字符并返回指向公共(public)字符的指针(不使用strpbrk)

linux - Bash 中 printf 和 echo 的区别

performance - 如何获取文件中最大的数字?

ruby - 我杀了 rvm 现在我有一条 bash 消息