Find files that have recently been modified on a Linux system

techie-iconTo find recently modified files on a Linux system use:

find . -mtime -2 -ls

In the above example the dot says start at the current directory and looks in that and all directories below it. The -2 tells it to search for files modified in the last two days.

Something like this:

find /home/nobby -mtime -4 -ls

would search /home/nobby and all its subdirectories for files modified in the last 4 days.

Leave a Reply