[CentOS] find most recent file update in directory

Mogens Kjaer mk at lemo.dk
Fri Dec 9 14:15:53 UTC 2011


On 12/09/2011 02:41 PM, Helmut Drodofsky wrote:
> Hello,
>
> I try to find in a directory hicharchy the most recent time of file update.
>
> I think, there could be a solution with find?

Try something like:

find . -type f -printf '%A@ %p\n' | sort -n | tail -1

Mogens

-- 
Mogens Kjaer, mk at lemo.dk
http://www.lemo.dk



More information about the CentOS mailing list