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 would like to know how to find the files that are last changed under a directory and its subdirectories. ls -lt doesnt work, because if a file is changed and therefore its time is changed to be up to date, the directory that containing the file will not have its directory updated.

My ultimate goal is to find the last changed file whose size is increasing the fastest or most, for my problem mentioned in the other post. So I also would like to know about that.

My OS is Ubuntu 12.04.


share|improve this question
find /search/root -printf "%T+ %10s %p\n" | sort -n --reverse

If you use GNU find and no file name (or path) contains a newline (which could be checked by a -path test).

share|improve this answer

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.