In some cases, we want to find files that older than certain year , let say 1 year, we can use the -mtime +1 argument. In other hand, if we want to find files that older than certain minute, let say 1 minute, we can use -mmin +1 argument.

man find

find the following statement

       -mmin n
              File’s data was last modified n minutes ago.
 
       -mtime n
              File’s  data  was  last  modified  n*24  hours ago.  See the comments for
              -atime to understand how rounding affects the interpretation of file mod?
              ification times.

Find files that older than 1 year

find . -mtime +1

Find files that older than 1 minute

find . -mmin +1
Any Java questions or problems? please post at this JavaNullPointer.com forum, see you there ~