Find files older than 30 days

find . -type f -mtime +30 -exec ls -l {} \;

Find files and sub-directories that are older than 30 days in the working directory and list them. By changing the value for -mtime, you can adjust the time.

No comments:

Post a Comment