file-access-time · shipping · also atime, File access timestamp, Last file access time

File access time

File access time (atime) is the filesystem timestamp associated with access to a file, subject to the operating system's access-time update policy.

On Linux, reads can update atime, but noatime suppresses access-driven updates and relatime limits them. With relatime, an access updates atime when the previous value is no later than mtime or ctime, or is more than 1 day old, and since Linux 2.6.30 this is the kernel default unless strictatime is requested. nodiratime suppresses updates for directories only. [2]

O_NOATIME, available since Linux 2.6.8, suppresses updates for reads through one opened file, but only a caller that owns the file or is privileged may use it. [5]

lazytime is different: eligible timestamps are updated in memory, and the on-disk copy is written when the inode changes for another reason, on fsync(2), syncfs(2) or sync(2), when an undeleted inode is evicted, or through aged timestamp writeback. The manual's 24-hour description is not an unconditional durability deadline: Linux v6.12 uses a tunable dirtytime interval, with a 12-hour default and possible two-interval behavior. [6] [7] Neither an unchanged atime nor delayed on-disk persistence proves that no access occurred. [2]

utimensat(2) can set atime explicitly, to the current time with UTIME_NOW, or leave it unchanged with UTIME_OMIT. [3] On filesystems without subsecond timestamps the nanosecond field reads as 0. [1]

Relations

related
Inode, File modification time, Inode change time, File birth time, Relative access-time updates, Lazy timestamp persistence, X-RAY

Advantages

  • Can indicate access relative to modification when the applicable update policy is known. [2]

Limitations

  • May not record every read.
  • The policy is set per mount, so the same file can follow different rules under different mount options. [2]

Citations

  1. Linux man-pages 6.19: inode(7), file timestamps (accessed 2026-10-23)
  2. util-linux: mount(8), access-time policy and lazytime (accessed 2026-10-23)
  3. Linux man-pages 6.19: utimensat(2), UTIME_NOW and UTIME_OMIT (accessed 2026-10-23)
  4. Linux man-pages 6.19: open(2), O_NOATIME (accessed 2026-10-23)
  5. Linux v6.12 fs/fs-writeback.c: dirtytime interval and writeback (accessed 2026-11-09)
  6. Linux 6.12 VM documentation: dirtytime_expire_seconds (accessed 2026-11-09)

Further reading

  1. Hesela: interpreting file timestamps during rsync selection (accessed 2026-10-21)
Sources & caveats
  • linux-mount is the util-linux mount(8) page, re-read for noatime, nodiratime, relatime, strictatime and lazytime.
  • linux-open is the Linux man-pages 6.19 open(2) page, read for O_NOATIME and its permission rule.
  • linux-utimensat is the Linux man-pages 6.19 utimensat(2) page, re-read for UTIME_NOW and UTIME_OMIT.
  • linux-inode is the Linux man-pages 6.19 inode(7) page, re-read for timestamp fields and nanosecond support.
  • The directory-enumeration entry links here because noatime and nodiratime decide whether reading directories records access time.
  • 2026-11-09: clarified lazytime scheduling versus durability using pinned Linux v6.12 source and VM documentation; added distinct policy entities.

JSON: /data/terms/file-access-time.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. File access time. Hesela. 2026-12-02. https://hesela.dev/terms/file-access-time/