Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #236021

Re: Creation vs Modification timestamps

From Dan Ritter <dsr@randomstring.org>
Newsgroups linux.debian.user
Subject Re: Creation vs Modification timestamps
Date 2021-06-12 12:50 +0200
Message-ID <Cp9nc-6et-3@gated-at.bofh.it> (permalink)
References <Cp3rs-2FD-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


hobie of RMN wrote: 
> Lately a script that has worked well and as intended for years and years
> has begun doing something odd.  When archiving a bunch of flat files,
> instead of keeping the creation timestamps on those files, it stamps them
> with the date and time of their being moved.
> 
> Why that's happening is a separate issue and one that I do need to find
> the answer to, but my question today is this:  Is it possible to find the
> original creation date-and-time on these files, or is it simply "gone with
> the wind" at this point?

No. There are three timestamps, and none of them are original
creation times.

atime is last access time, and most modern systems have either
stopped recording this, or set it only when mtime is written.

mtime is last modification time, or if you prefer, the last time
it was written to.

ctime is not creation time; it is the last time the inode was
changed. ctime is updated when the permissions or ownership of
the file changes, or the number of links changes, or the number
of blocks changes...



-dsr-

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Creation vs Modification timestamps "hobie of RMN" <hobie@rumormillnews.com> - 2021-06-12 06:30 +0200
  Re: Creation vs Modification timestamps Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-06-12 08:50 +0200
  Re: Creation vs Modification timestamps deloptes <deloptes@gmail.com> - 2021-06-12 11:00 +0200
  Re: Creation vs Modification timestamps Dan Ritter <dsr@randomstring.org> - 2021-06-12 12:50 +0200
    Re: Creation vs Modification timestamps Greg Wooledge <greg@wooledge.org> - 2021-06-12 15:10 +0200

csiph-web