One coworker today ask me  about the difference between mtime and ctime.

Searching on Google about this, I found a good explanation about this on this blog.

mtime is “modification time”, and it is the time at which the last modification *TO THE CONTENT* of the file was made.

ctime is “change time”, and it is the time at which the last modification *TO THE PROPERTIES* of the file was made. By “properties” I mean things like ownership and permissions.  You can think of this as “chtime” – the last time a “ch*” command like chown, chmod, or chgrp was performed on the file.

The answer is very simple, but I believe this help many people on your work :-)

If you’re developing some scripts with find I believe this is very important to read and understand.

 

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS