Find files that have changed in past 7 days code example Example: find files created in last 20 days find . -type f -mtime -30 -exec ls -l {} \; > last30days.txt