简体   繁体   English

我试图在 Linux 中查找过去 10 天内创建或修改的最大文件

[英]im trying to find the largest files created or modified within the last 10 days within Linux

im trying to find the largest files created or modified within the last 10 days within Linux.我试图在 Linux 中查找过去 10 天内创建或修改的最大文件。

I wanted to find all files which exceed 100MB in size but were created in the last 10 days.我想查找大小超过 100MB 但在过去 10 天内创建的所有文件。

Almost along the lines of the below几乎沿着下面的线

find / -type f -size +100000k -exec ls -lShr {};查找 / -type f -size +100000k -exec ls -lShr {}; | | awk '{ print $9 ": " $5 }' | awk '{ 打印 $9 ": " $5 }' | sort -k 5 -r -h排序 -k 5 -r -h

-mtime -10 -ls -mtime -10 -ls

You can use -printf of GNU find :您可以使用 GNU find-printf

find / -size +100M -mtime -10 -printf '%s\t%p\n' | sort -n

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM