Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

file timestamps in linux

Name: Anonymous 2013-01-19 4:06

So how do file timestamps actually work?
Is it safe to rely on them to know the time of creation even if the files were moved from disk to disk, or between Linux and Windows? Or is it better to write the creation time somewhere else like directly in the filename or to separate file along with file's hash?

Name: dssd 2013-01-19 14:27

Name: Anonymous 2013-01-19 22:08

Name: Anonymous 2013-02-01 8:21

Put it in the filename: file.20130201
modified/creation timestamps can be easily changed.

Name: Anonymous 2013-02-16 0:56

>4

Timestamps, owner, group, SetUid and other such flags are part of the metadata of a file. Different file systems (fat, ntfs, ext4, hfs, etc) use different sets of metadata flags, thus even moving a file b/w disks on the same computer can mess it up. If you want to have the creation time always available even across multiple computers, best to store it in the file itself.

Don't change these.
Name: Email:
Entire Thread Thread List