how to find files which are accessed at a particular time in red hat 8

Herta Van den Eynde herta.vandeneynde at gmail.com
Fri Feb 22 15:12:41 UTC 2008


On 21/02/2008, Pankaj Batra <pankajbatra.c1191 at sysnetglobal.net> wrote:
> Hi folks..
>                Please tell how  to find files which are accessed at a
>  particular time in red hat 8
>
>  Thanks.
>
>
> Pankaj.
>

This will find all files in the current directory (.) which have been
accessed more than 3 days ago:

$ find . -atime +3

You can check for files which have been accessed less than 3 days ago
by specifying -3, or for files that have been changed 3 days ago, by
dropping the sign.  You could also specify minutes instead of days by
using -amin instead of -atime.

FWIIW:
atime = the last time the file was opened for read
mtime = the last time the file was closed after it was opened for write
ctime = the time the inode information was updated (e.g. as a result
of a chmod or chown)

Kind regards,

Herta
-- 
"Life on Earth may be expensive,
 but it comes with a free ride around the Sun."




More information about the redhat-list mailing list