How to find files in Linux modified on specific date

The below code will find all *.php files in every directory under the /path/to/dir/ directory modified on 14th June 2015 (ie between 00:00 on 2015-06-14 and 00:00 on 2015-06-15, hence why you need both dates).

find /path/to/dir/ -type f -name "*.php" -newermt 2015-06-14 ! -newermt 2015-06-15

Just modify each part of the command to suit your needs!

Leave a Reply

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