The difference between atime, CTime, Mtime

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.