Re: stat command difference between %Y %Z
From: Bill Marcum (bmarcum_at_iglou.com.urgent)
Date: 02/28/05
- Next message: Chris F.A. Johnson: "Re: how to find the extension of a file?"
- Previous message: michaelkatsilis_at_yahoo.com: "Re: ksh and +() regex"
- In reply to: paulw_at_mmail.ath.cx: "stat command difference between %Y %Z"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 28 Feb 2005 02:25:54 -0500
On 27 Feb 2005 21:22:01 -0800, paulw@mmail.ath.cx
<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).
- Next message: Chris F.A. Johnson: "Re: how to find the extension of a file?"
- Previous message: michaelkatsilis_at_yahoo.com: "Re: ksh and +() regex"
- In reply to: paulw_at_mmail.ath.cx: "stat command difference between %Y %Z"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]