find files created in last 2 days code example Example: find files created in last 20 days find . -type f -mtime -30 -exec ls -l {} \; > last30days.txt