[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: why is the access time of dirs not chaged?



* Dan Jacobson
> The following message is a courtesy copy of an article
> that has been posted to comp.unix.shell as well.
>
> If I do "cat dir/file", why is the access time of dir not changed, as
> seen with stat(1) or ls -ul?  Only if we do "ls dir" will dir's access
> time be changed.  Maybe it is on purpose to avoid too much disk
> access.  In version 7 Unix did they do that too?

Maybe because it isn't read as per policy.  I mean, you can have
access to the file with only access bit x set on the directory.

-- 
 Jon Haugsand, Jon-H.Haugsand@norges-bank.no
 http://www.norges-bank.no



Reply to: