What action updates a file's ACCESS time?

Jon H. LaBadie jon at jonlab.UUCP
Wed Dec 5 02:02:40 AEST 1990


In article <331 at twg.bc.ca> bill at twg.bc.ca (Bill Irwin) writes:
>I would like to know ALL the possible activities that could result in a file's
>access  time (ls -lu) being updated.

The way to look at this is that any activity that requires looking at
the data in the file (not the inode contents) will update the access
time.  Copies will, moves on the same file system shouldn't.  File type
checks probably will.  Grep's definitely will.

Note also that write's to a file require a read first.  You may want to
write one character.  But disks transfer data in blocks.  Thus, to
write your one character, the block it will be written in must be read
into memory.  You will "write" your one character into that memory
buffer and the entire block will be written to disk.

Thus writes also update access times.

Jon

-- 
Jon LaBadie
{att, princeton, bcr, attmail!auxnj}!jonlab!jon



More information about the Comp.unix.admin mailing list