Mtime

From Leo's Notes
Last edited on 28 September 2020, at 16:37.

mtime is the modified timestamp for the content in a file. Writing anywhere within the file will update the file's mtime. It does not update the mtime of its parent directory.

ctime is the attribute change time. It updates not only when the file is modified, but also when the inode fields changes (including mtime, ownership, size, link count).

  • Create/delete a hard link to a file, which is the same as renaming a file (creating a new hard link, removing the old one)
  • Updating a file's ownership
  • Changing the file's size

access time is updated whenever the file is accessed, unless the file's opened with O_NOATIME flag. For performance reasons, filesystems can be mounted with relatime or noatime to reduce precision or disable atime completely.

See Also[edit | edit source]

https://apenwarr.ca/log/20181113