Linux – find files modified within “x” minutes

Use find with mtime to search a set number of days

find -type f -mtime -10

where -10 is the amount of time (days) to search.

eg, find all files modified within 2 days

find -type f -mtime -2

Use find with mmin to search for files modified within a set number of minutes

find -type f -mmin -10

where -10 is the amount of time (minutes) to search.

eg, find all files modified within 90 minutes

find -type f -mmin -90

As this is the find command it will search within the current directory and subsequent sub directories

Print Friendly, PDF & Email

More Like This


Categories


Linux

Tags


  • Post a comment