find files modified in last five days unix linux

How do we find files modified in last five days unix linux?

To find all files modified within the last 5 days:

find / -mtime -5 -print

The – in front of the 5 modifies the meaning of the time as “less than five days.” The command

find / -mtime +5 -print

displays files modified more than five days ago. Without the + or -, the command would find files with a modification time of five days ago, not less or more.

source: http://www.tech-recipes.com/rx/37/find-unix-files-modified-within-a-number-of-days/

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.