Tag Archives: ctime
When looking for new files (or directories) with the find command, there is a difference between using mtime or ctime.
From the manual:
File's status was last changed n*24 hours ago.
File's data was last modified n*24 hours ago.
This essentially means that if a file was touched (touch myfile), the file’s status was changed and ctime will pick this up:
On the other hand, if the file’s content was changed, mtime will pick this up:
When watching a directory for new incoming files, ctime is what you’ll want to use.