Contents
stat is a command-line utility that displays detailed information about given files or file systems.
What does STAT do in Unix?
The stat command pulls information from the file’s inode. As you might be aware, there are actually three sets of dates and times that are stored for every file on your system.
What is the use of STAT function?
stat() function is used to list properties of a file identified by path . It reads all file properties and dumps to buf structure. The function is defined in sys/stat. h header file.