What action updates a file's ACCESS time?

Geoff Clare gwc at root.co.uk
Wed Nov 28 00:37:09 AEST 1990


In <141 at raysnec.UUCP> shwake at raysnec.UUCP (Ray Shwake) writes:

>bill at twg.bc.ca (Bill Irwin) writes:

>>1) vi the file and quit without saving (access time updated)
>>2) TAR archive some files to tape (updated)

>	In both cases, your program opened the file for reading, thus
>	the access time was updated.

Minor nit-pick: opening the file is not itself sufficient to update the
access time.  You do actually have to read some data from the file.
E.g.
	ls < file

will not update the access time of "file" because "ls" does not read
anything.
-- 
Geoff Clare <gwc at root.co.uk>  (Dumb American mailers: ...!uunet!root.co.uk!gwc)
UniSoft Limited, Hayne Street, London EC1A 9HH, England.   Tel: +44-71-315-6600



More information about the Comp.unix.admin mailing list