Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to use find but sort the results reverse chronologically as with ls -ltr. Is this possible through any combo of flags or pipelines?

share|improve this question
possible duplicate of List files larger than {size} sorted by date – Gilles Jan 24 '12 at 23:57
up vote 19 down vote accepted

Use find's -printf command to output both the time (in a sortable way) and the file, then sort. If you use GNU find,

find . your-options -printf "%T+\t%p\n" | sort
share|improve this answer
sort -r for reverse order. – stnly Jan 24 '12 at 15:12
ls -t sorts newer to older, sort sorts older to newer. So ls -t's reverse order is sort's normal order. – angus Jan 24 '12 at 15:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.