Changing date of file

Steven W. Orr steveo at syslang.net
Fri Apr 6 17:37:54 UTC 2007


On Thursday, Apr 5th 2007 at 22:53 -0400, quoth Matthew Miller:

=>On Fri, Apr 06, 2007 at 01:07:17AM +0300, Dotan Cohen wrote:
=>The other post (`touch`) gives the correct answer, but note that there is no
=>"created" date on Unix -- just last modification, last access, and last
=>metadata change.

Correct but... I just wanted to point out the st_ctime is the creation of 
the inode or other inode data changes, but that for the level of the 
person asking the question, ctime really is the file creation data (in all 
likelyhood). Other operations (besides touch) which will stomp on ctime,
are any functions which effect the inode of a file. This would include 
things like chmod, chown, chgrp, ln (i.e., ln without -s).

-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net




More information about the fedora-list mailing list