How to find largest files modified in the last 10 days – Unix/Linux

Keeping Track of large files and modifications in a system is sometimes cumbersome. Some times we need to check what are the files which got modified in past few days, lets say last 10days.
Below command will be helpful in finding the large files which got modified in past 10days.

find `pwd` -mtime -10 -type f 2>/dev/null | xargs ls -lah 2>/dev/null | awk '{print $5"\t"$6" "$7"\t"$9}' | sort | egrep "M|G" | grep -v "\..M"

Note: Modify the -mtime value to any other value to increase the modification time. E.g: past 30days -mtime will be 30

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.