Is ctime of find the creation time?

7,913

No, it is the date of the last status change to the file, i.e. writes to file data or metadata.

Further reading

Share:
7,913

Related videos on Youtube

Kingofkech
Author by

Kingofkech

By day : I am a student in computer networks and information systems, I am passionate about new technologies since my youngest age. By night: I am a fan of video games I play it enormously and I appreciate every second passed in front of my screen.

Updated on September 18, 2022

Comments

  • Kingofkech
    Kingofkech almost 2 years

    In the man of find the -ctime is said to be :

    -ctime n 
              File status was last changed n*24 hours ago.  See the comments
              for -atime to understand how rounding affects the interpretation
              of file status change times.
    
    -atime n
              File  was  last  accessed n*24 hours ago.  When find figures out
              how many 24-hour periods ago the file  was  last  accessed,  any
              fractional part is ignored, so to match -atime +1, a file has to
              have been accessed at least two days ago.
    

    I know from here that the ext4 file system stores the creation date , and you can get it using stats , is the status change times they are talking about in the manual the same as the one given by stats ? or precisely , is the ctime the date of creation of a file ?

  • Kingofkech
    Kingofkech over 6 years
    i need to perform a find of a files that have not been created in more then 30 days , so -ctime +30 will not work ?