unix

How do I find files on my Linux server that have been created or modified in the past 60 minutes?

Finding files that have been created or modified in the past 60 minutes can be done many ways including calculating with stat, the find command, and creating a touch file.

One such way is:

find /path/to/a/file -mmin -60 -type f | xargs ls -lt

This command will create a long listing of all files created or modified in the past 60 minutes. If you don’t want the long listing, just leave off the xargs portion.

find /path/to/a/file -mmin -60 -type f

Click to comment

Leave a Reply

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

To Top