Blog

Recursively find the latest modified file

May 27, 2010
Category:Bash How To 

This will search the current directory for the most recently changed file and display the filename along with the modification time.

find . -printf "%CY-%Cm-%Cd %CH:%CM:%CS\t%p\n" | sort -nr | head -n 1


Comments

Your Name:
Your Email:
Comment Title:
Notify me of comments to this post.
 
This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)