Find newer files on linux

Today I had to recover some files from backup that were uploaded during a certain time period over night by a developer into production server. To quickly find the files which needed to be restored I came up with this little trick

find ./ -newer somefile

Where somefile was another file which was a reference point to find any files newer than that one. This listed all the new files.

Leave a Reply

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