RE: find question
The find's atime option seems a bit sketchy.
I've tried find <dir> -atime 3 -print and nothing prints out.
but when i do :
find <dir> -atime 2 -print
it prints stuff out.
If it's been accessed in 2 days, it's been accessed in 3 days right?
Unless it means _exactly_ 2 or 3 days, in which case, it's not a great
feature since i have to check if directories have been accessed in 60 days!
Any suggestions or comments?
From: "Sean 'Shaleh' Perry" <email@example.com>
To: Andrew Kae <firstname.lastname@example.org>
Subject: RE: find question
Date: Fri, 30 Jun 2000 13:47:27 -0700 (PDT)
> dir1 and dir2 are web sites themselves.
> I want to know if anyone has accessed dir1 within the last 60 days.
> been using find like this:
> $ find dir1 -atime 60 -print
> Is this the correct command?
looks sane, although I think atime is only set on files. Also, some people
turn off atime writing for a speed gain.
> Is there an easier or alternative way to find this out without looking
> the logs?
there are log analyzers out there. They give all kinds of great stats.
> How does "find" check on this anyway?
each file on the hard drive has data stored with it about its size,
time created, etc. This is the same data ls prints. To see what find is
doing, read the man page for stat.
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com