I'm using Ubuntu 12.04, though I'd imagine this question spans all Linux variants. In the manpage for the stat
command, there are two (four) formatting options that appear to mean the same thing:
The valid format sequences for files (without --file-system):
...
%y Time of last modification, human-readable
%Y Time of last modification, seconds since Epoch
%z Time of last change, human-readable
%Z Time of last change, seconds since Epoch
However, these values aren't always equal. For example, stat --printf="%y\n%z\n" /usr/local
on my system outputs the following:
2012-04-26 10:29:13.000000000 -0500
2013-05-06 18:08:19.000000000 -0500
So what is the difference between "change time" and "modification time"?