Skip to main content

Finding most recently changed files in Unix

How do I find the most recently changed files in a set of subdirectories on Unix or Linux?

Answer: This command will show for the current directory and below, all the files modified less than 1 day ago.

find . -mtime -1 -ls

This version will just print the filenames, without the file sizes or times.

find . -mtime -1 -print