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