stat command difference between %Y %Z

stat command difference between %Y %Z

am 28.02.2005 06:22:01 von PaulW

Hi

I'm reading stat manpage.
What's the difference between
%Y Time of last modification as seconds since Epoch
%Z Time of last change as seconds since Epoch
Thanks.

Re: stat command difference between %Y %Z

am 28.02.2005 08:25:54 von Bill Marcum

On 27 Feb 2005 21:22:01 -0800, paulw@mmail.ath.cx
wrote:
> Hi
>
> I'm reading stat manpage.
> What's the difference between
> %Y Time of last modification as seconds since Epoch
> %Z Time of last change as seconds since Epoch
> Thanks.
>
In a Unix filesystem, each file has three timestamps: access,
modification, and change. A Unix file does not have a "creation time".
modification (mtime) refers to the contents of the file.
change (ctime) refers to the file's metadata: name, permissions, hard
links, or timestamps (with the "touch" command, you can change a file's
modification or access times).