查找创建的目录不到一个星期前 [英] Find directories created less than a week ago

查看:86
本文介绍了查找创建的目录不到一个星期前的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以使用这个命令来查找目录中的创建或修改不到一个星期前:

I know I can use this command to find directories created or modified less than a week ago:

find /home -type d -mtime -7

但我怎么找到那名目录的创建不到一个星期前?

推荐答案

创建时间不可以存储

有只有3时间戳,您可以检查

There is only 3 timestamps you can check

Last access time
Last modification time
Last change time

变化之一:权限更改,重命名等。
虽然修改是唯一的内容。

"Change" is one of: permission changes, rename etc. While the modification is contents only.

这篇关于查找创建的目录不到一个星期前的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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