[CentOS] find most recent file update in directory
John Doe
jdmls at yahoo.comFri Dec 9 16:03:33 UTC 2011
- Previous message: [CentOS] find most recent file update in directory
- Next message: [CentOS] find most recent file update in directory
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: "m.roth at 5-cent.us" <m.roth at 5-cent.us> > John R. Dennison wrote: >> On Fri, Dec 09, 2011 at 03:15:53PM +0100, Mogens Kjaer wrote: >>> >>> Try something like: >>> >>> find . -type f -printf '%A@ %p\n' | sort -n | tail -1 >> >> I believe you want %T@ instead of %A@ (modification time versus access >> time). I would also suggest sort -nr to sort from most recent to least >> recent. > > What's wrong with ls -laFrt? The OP said "in a directory hicharchy"... JD
- Previous message: [CentOS] find most recent file update in directory
- Next message: [CentOS] find most recent file update in directory
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list