查找超过1小时但少于3天的文件 [英] Find files modified over 1 hour ago but less than 3 days

查看:62
本文介绍了查找超过1小时但少于3天的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Linux中,使用bash,查找一个多小时前但少于三天前修改过的文件的最简单方法是什么?

In linux, using bash, what's the easiest way to find files that were modified more than an hour ago but less than 3 days ago?

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

Surely, there's got to be an easy way to do this. I keep searching and can't find an easy solution.

推荐答案

发现具有-mtime和-mmin:

Find has -mtime and -mmin:

find . -mtime +3 -mmin -60

在查找手册中:

数字参数可以指定为:

Numeric arguments can be specified as:

+ n大于n

-n少于n

n代表n

这篇关于查找超过1小时但少于3天的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆