How Do You Find the Most Recently Modified Files in Linux?

Problem scenario
Someone was doing a web conference and modified several files.  You have forgotten what files she modified.  How do you find the files that were modified most recently on a Linux server?

Run this command:

find $1 -type f -exec stat --format '%Y :%y %n' "{}" \; | sort -nr | cut -d: -f2- | head

#  Taken from

Leave a comment

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