How to find the files that are created in the last hour in unix

Ankur picture Ankur · Mar 9, 2011 · Viewed 248k times · Source

How to find the files that are created in the last hour in unix

Answer

sameer picture sameer · Jul 22, 2011

If the dir to search is srch_dir then either

$ find srch_dir -cmin -60 # change time

or

$ find srch_dir -mmin -60 # modification time

or

$ find srch_dir -amin -60 # access time

shows files created, modified or accessed in the last hour.

correction :ctime is for change node time (unsure though, please correct me )