GNU Info

Info Node: (find.info)Age Ranges

(find.info)Age Ranges


Next: Comparing Timestamps Up: Time
Enter node , (file) or (file)node

Age Ranges
----------

   These tests are mainly useful with ranges (`+N' and `-N').

 - Test: -atime n
 - Test: -ctime n
 - Test: -mtime n
     True if the file was last accessed (or its status changed, or it
     was modified) N*24 hours ago.

 - Test: -amin n
 - Test: -cmin n
 - Test: -mmin n
     True if the file was last accessed (or its status changed, or it
     was modified) N minutes ago.  These tests provide finer
     granularity of measurement than `-atime' et al.  For example, to
     list files in `/u/bill' that were last read from 2 to 6 minutes
     ago:

          find /u/bill -amin +2 -amin -6

 - Option: -daystart
     Measure times from the beginning of today rather than from 24
     hours ago.  So, to list the regular files in your home directory
     that were modified yesterday, do

          find ~ -daystart -type f -mtime 1


automatically generated by info2www version 1.2.2.9