Calling cat a second time on a file doesn't update its access time. I was expecting the access time to be updated every time a file's contents get displayed.
I see the same behaviour if I open the file in a web browser. Its access time does not get updated consistently.
Am I misunderstanding access time? What is different between the two cat calls?
$ touch test $ stat test File: `test' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 803h/2051d Inode: 152694 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 1001/ aaron) Gid: ( 1001/ aaron) Access: 2012-08-21 11:05:40.586020996 +0200 Modify: 2012-08-21 11:05:40.586020996 +0200 Change: 2012-08-21 11:05:40.586020996 +0200 Birth: -$ vim test $ stat test File: `test' Size: 5 Blocks: 8 IO Block: 4096 regular file Device: 803h/2051d Inode: 152694 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 1001/ aaron) Gid: ( 1001/ aaron) Access: 2012-08-21 11:05:52.890021630 +0200 Modify: 2012-08-21 11:06:31.606023626 +0200 Change: 2012-08-21 11:06:31.638023629 +0200 Birth: -
$ cat test test
$ stat test File: `test' Size: 5 Blocks: 8 IO Block: 4096 regular file Device: 803h/2051d Inode: 152694 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 1001/ aaron) Gid: ( 1001/ aaron) Access: 2012-08-21 11:06:44.662024298 +0200 Modify: 2012-08-21 11:06:31.606023626 +0200 Change: 2012-08-21 11:06:31.638023629 +0200 Birth: -
$ cat test test
$ stat test File: `test' Size: 5 Blocks: 8 IO Block: 4096 regular file Device: 803h/2051d Inode: 152694 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 1001/ aaron) Gid: ( 1001/ aaron) Access: 2012-08-21 11:06:44.662024298 +0200 Modify: 2012-08-21 11:06:31.606023626 +0200 Change: 2012-08-21 11:06:31.638023629 +0200 Birth: -