Another Useful Linux Command - Find Files Changed in Last Few Days

Mon, Mar 4, 2013 1-minute read

From time to time I need to find or track files in folder and sub-folders changed in a last few days, and command bellow do job easy and fast.

    find . -type f -exec stat -c "%y %n" {} + | sort -r | head -15

Also I have it inside .bash_aliases :

    alias findrecent='find . -type f -exec stat -c "%y %n" {} + | sort -r | head -15'

Above command will search current and all sub-folders for all files, sort them and show only last 15 files (based on change date/time attribute).

Very handy little command.
\bye