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

Viewed 25

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

1 Answers

You can use -printf of GNU find:

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