Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

Is it possible to recursively scan changed files from more than 3 weeks ago with inotify, or is inotify only for starting cron jobs? What other command can I try for checking for changed files that are more than 3 weeks old?

share|improve this question

I think you may be looking for find. Inotify is more of an event mechanism for live updates, whereas find enables you to search for files based on criteria such as -cmin, -ctime, etc.

share|improve this answer

As "Jo-Erlend Schinstad" said... you can use find


find . -mtime +5 | xargs ls -l

. -> current directory (recursive search is by default)

-mtime +5 -> find all files which are older than 5 days (this is for creation time, not last change time!)

| xargs ls -l -> only for listing file detail (you can remove this)

share|improve this answer
when I want to check of last 31 days ( what has been modified as file ) all directories on harddisk then I type this ? : find * -type f -mtime +31 -printf '%s Byte(s)\n' >> find-modified-001.txt – dschinn1001 Sep 12 '12 at 11:20
if you want to check all files just go to / or replace . with / – Wolfy Sep 12 '12 at 11:22
if you want to find all files older (creation time) than 31 days you must run this: "find / -type f -mtime +31" – Wolfy Sep 12 '12 at 12:05

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.