stat command's manual page says:
%x Time of last access %y Time of last modification %z Time of last change
I am unable to understand what is the difference between modify and change. What I understand both are synonyms (English is not my mother tongue), but their output is different.
I tried following command
stat --printf="Change %z\nAccess %x\nModify %y\n" p.txt
Now when I open p.txt, access time is changed, I go into insert mode, edit the file, modify and change time remains same.
Change 2010-10-06 12:48:39.286252389 +0500
Access 2010-10-06 12:49:14.962243456 +0500
Modify 2010-10-06 12:48:39.234498878 +0500
When I write the changes to file
:w, modify and change, both change but give different values.
Change 2010-10-06 12:51:21.949082169 +0500
Access 2010-10-06 12:51:21.908246082 +0500
Modify 2010-10-06 12:51:21.908246082 +0500
So what is the meaning of modify and change in this context? Time of modification and change give time of which event?