简体   繁体   中英

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.

I wanted to find all files which exceed 100MB in size but were created in the last 10 days.

Almost along the lines of the below

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

-mtime -10 -ls

You can use -printf of GNU find :

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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