Another useful linux command - find files changed in last few days

Published by burgerboydaddy on Mon, 03/04/2013 - 12:48

Tags 

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

Add new comment