Finding Files Edited Today on Linux

Find all files in this directory (.) modified in the last day (-mtime -1) that aren’t directories (\! -type d) and execute the list function on them ls -l:

find . -mtime -1 \! -type d -exec ls -l {} \;

I just tooks this from the page:

Now I just need to update the script to filter out images.

To search for files modified any number of days back, just increase the number of days back for mtime to go back any number of days.

Post written by Ed Reckers

Founder and lead web development consultant at Red Bridge Internet : San Francisco WordPress Developers and Consultants.

Leave a Reply