struct stat { mode_t st_mode; /* file type & mode (permissions) */ ino_t st_ino; /* i-node number (Serial number) */ dev_t st_dev; /* device number (File system) */ dev_t st_rdev; /* device number for special files */ nlink_t st_nlink; /* number of links */ uid_t st_uid; /* user id of owner */ gid_t st_gid; /* group ID of owner */ off_t st_size; /* size in bytes, for regular files */ time_t st_atime; /* time of last access */ time_t st_mtime; /* time of Last modification */ time_t st_ctime ; /* time of last file status change */ blksize_t st_blksize; /* best i/o block size */ blkcnt_t st_blocks; /* number of disk blocks allocated */ };
Atime file last accessed time
The time the Mtime file was recently modified means that the content was modified
CTime file status recently changed time, refers to change the file status, permission, etc.
Ls-l command prints the mtime of a file by default, sorted in dictionary order,-T is sorted by mtime
The difference between atime, CTime, Mtime