Stat (system Call)

Stat (system Call)

stat is a Unix system call that returns file attributes about an inode. The semantics of stat vary between operating systems. As an example, the Unix command ls uses it to retrieve information on (among many others):

  • atime: time of last access (ls -lu),
  • mtime: time of last modification (ls -l), and
  • ctime: time of last status change (ls -lc).


Read more about Stat (system Call):  Stat Functions, Stat Structure, Criticism of Atime, Ctime, Granularity of Mtime, Etc.