Jul 122012

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

© Incase of any copyright infringements please check copyrights page for faster resolutions.

Leave a Reply

Show Buttons
Hide Buttons