首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >我想列出我的Linux服务器中所有比2014年12月31日更早的文件。

我想列出我的Linux服务器中所有比2014年12月31日更早的文件。
EN

Unix & Linux用户
提问于 2015-12-21 19:57:53
回答 1查看 356关注 0票数 3

我想列出一个目录和子目录中的所有Linux文件,这些目录和子目录都在2014年12月31日之前。请帮帮我。

EN

回答 1

Unix & Linux用户

发布于 2015-12-21 20:05:11

find . -type f ! -newermt "31 Dec 2014"

查找(1):

代码语言:javascript
运行
复制
-newerXY reference
          Compares the timestamp of the current file with reference.   The
          reference  argument  is  normally the name of a file (and one of
          its timestamps is used for the comparison) but it may also be  a
          string  describing  an  absolute time.  X and Y are placeholders
          for other letters, and these letters select which time belonging
          to how reference is used for the comparison.

          a   The access time of the file reference
          B   The birth time of the file reference
          c   The inode status change time of reference
          m   The modification time of the file reference
          t   reference is interpreted directly as a time
票数 17
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/250782

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档