【问题标题】:finding the long listing of all files that have access time 5 or more days查找访问时间为 5 天或更长时间的所有文件的长列表
【发布时间】:2020-07-08 02:52:32
【问题描述】:

我想要访问时间为 5 天或更长时间的文件的 ls -l 输出。

我试过这些:

ls -l | find ~ -atime +5 (只给出'find ~ -atime +5'的结果)

find ~ -atime +1 | ls -l(只给出'ls -l'的结果)

如何组合这两个命令?

【问题讨论】:

    标签: linux find ls


    【解决方案1】:

    试试find ~ -type f -atime +5 -exec ls -la {} \;

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-25
      相关资源
      最近更新 更多