difference of mtime and ctime
Posted on 2011-09-14
Though I understand the difference between ctime, mtime and atime. There is one scenario on which I am stuck and not able to get the answer.
I open a txt file and change just one character and then save it. It changed the mtime, ctime and atime.
I understand why did it change the atime and mtime but could not get the clue why ctime also needs to be changed.
AFAIK ctime should change if there is update in inode table and inode table does keep the size of the file and in this thing when I just replace a character the file size is same. so why there should be a ctime change. Please let me know to fix my understanding :-)