Find command

From: <jeffrey.s.horvath_at_ccmail.census.gov>
Date: Wed, 18 Mar 1998 19:23:43 -0500

     SYSTEM DU 4.0B
     
     Could someone please explain the find command to me.
     I'm confused with the atime mtime and ctime options.
     
     The man page says:
     
       In the following descriptions, the argument number is a decimal
     integer
       that can be specified as +number (more than number), -number (less
     than
       number), or number (exactly number).
     
       -atime number
           TRUE if the file was accessed in the past number days, where
     number is
           interpreted as described in this reference page.
     
     Doesn't -atime +1 mean accessed greater than 24 hours ago?
     
     How can I identify all files accessed greater than 14 days ago?
     
     Than why the following result? Notice date at bottom.
     disa01# pwd
     /orarchive/archlogs
     disa01# find ./ -name 'ar*' -atime +1 |ls -l |more
     
     ...
     -rw-r----- 1 oracle dba 104857600 Mar 17 16:48
     arch_CAMS4217.log
     -rw-r----- 1 oracle dba 104858624 Mar 17 16:49
     arch_CAMS4218.log
     -rw-r----- 1 oracle dba 104857600 Mar 17 16:50
     arch_CAMS4219.log
     -rw-r----- 1 oracle dba 104857600 Mar 17 17:07
     arch_CAMS4220.log
     -rw-r----- 1 oracle dba 104857600 Mar 17 17:12
     arch_CAMS4221.log
     -rw-r----- 1 oracle dba 104857600 Mar 17 17:15
     arch_CAMS4222.log
     -rw-r----- 1 oracle dba 104857600 Mar 17 17:17
     arch_CAMS4223.log
     -rw-r----- 1 oracle dba 104857600 Mar 17 17:19
     arch_CAMS4224.log
     -rw-r----- 1 oracle dba 104857600 Mar 17 17:20
     arch_CAMS4225.log
     -rw-r----- 1 oracle dba 104857600 Mar 18 08:39
     arch_CAMS4226.log
     -rw-r----- 1 oracle dba 104858624 Mar 18 09:57
     arch_CAMS4227.log
     -rw-r----- 1 oracle dba 104858624 Mar 18 13:32
     arch_CAMS4228.log
     -rw-r----- 1 oracle dba 104858624 Mar 18 13:44
     arch_CAMS4229.log
     -rw-r----- 1 oracle dba 104858624 Mar 18 15:13
     arch_CAMS4230.log
     -rw-r----- 1 oracle dba 104858624 Mar 18 15:51
     arch_CAMS4231.log
     -rw-r----- 1 oracle dba 104858624 Mar 18 17:17
     arch_CAMS4232.log
     -rw-r----- 1 oracle dba 104858624 Mar 18 17:26
     arch_CAMS4233.log
     -rw-r----- 1 oracle dba 104858624 Mar 18 17:35
     arch_CAMS4234.log
     -rw-r----- 1 oracle dba 104857600 Mar 18 17:37
     arch_CAMS4235.log
     -rw-r----- 1 oracle dba 104857600 Mar 18 17:39
     arch_CAMS4236.log
     -rw-r--r-- 1 root dba 16093 Mar 18 18:47 temp.dat
     
     disa01# date
     Wed Mar 18 19:19:41 EST 1998
     
     I get same results with ctime +1 and mtime +1
     Thanks,
Received on Thu Mar 19 1998 - 01:26:36 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT